From patchwork Fri Sep 12 18:03:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 4897391 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 55D99BEEA5 for ; Fri, 12 Sep 2014 18:05:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C4ED2024C for ; Fri, 12 Sep 2014 18:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74D8A20221 for ; Fri, 12 Sep 2014 18:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752338AbaILSDq (ORCPT ); Fri, 12 Sep 2014 14:03:46 -0400 Received: from mail-ie0-f171.google.com ([209.85.223.171]:56431 "EHLO mail-ie0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752337AbaILSDn (ORCPT ); Fri, 12 Sep 2014 14:03:43 -0400 Received: by mail-ie0-f171.google.com with SMTP id y20so1397091ier.30 for ; Fri, 12 Sep 2014 11:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=1sNpzpJwRtQ4jcHlLTCiT9nKPhJNdbuxBaMBwO69Otc=; b=S+pmvrjMGGxQZCefIWwMnNVBZIfqvx7HCGQpE+RcG1D85VJAwK0qOxQ70f4OFxya2J gIYl3+rmMFrSxSe7bo8BshrKHWYCjjLayfIX2SMeE5E/g53TzlZQJQ1oCSXqO0bOe+AN b33RAo/ZwKJn+TNYd5kJF42LIKwxZBeju0VFxdPymQ1Tr3VWhYS61Mp+QWdwhAKOVGhi jDlnDGuNrOBHHOqnOGifYYYFEV4/iPR53p4kQ2mMqWMwjddj38b04OzY5rzJ0pNMUPDM XSxx2P0fQ/bXZAIYcMAx7kuTYWL4PKmk6ocihlxzP93km+ISehaOxLgCQw/D/VboSsxs ZVcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=1sNpzpJwRtQ4jcHlLTCiT9nKPhJNdbuxBaMBwO69Otc=; b=Jo36+DySIm/nyNe7dpRNCaf0oH/cPdDAtU8aKLXN7LaOIi8SJxPFMz1WOmbYKR8TFM /nbpxPWGnAK3qfDSApgrbcl0QPc/d8Oz+m/uMGobA7NMi/cOJt2FFepEvLfIAgFPM32r bIQKWE2QRTNLAMMpsCTq2y7L3rPjXb70eu0T59Pu2iDq99TBKUbQdkMGcxmV4sKiDC9U HOkn6YJSVvgAbXxlNWmAGT5Oo+JKdyCW9NI6/w4hejaa750WUkYwgD9kpCQkqTda3FWa 56AbBkEfmAKOQh3Xpigxy3zi8vNlT3pgD460KhfaQvi1clZ+xvng8EhlVozQUvmhN6ld BDfg== X-Gm-Message-State: ALoCoQmI28k7186YTor4kzF2uMwMjDcT489a79ztqrUHtY/UXKzax62VnUIBv+LGURViiyKncIBM X-Received: by 10.42.24.11 with SMTP id u11mr9137668icb.44.1410545023143; Fri, 12 Sep 2014 11:03:43 -0700 (PDT) Received: from localhost ([172.16.49.108]) by mx.google.com with ESMTPSA id or4sm2080173igb.18.2014.09.12.11.03.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Sep 2014 11:03:42 -0700 (PDT) Subject: [PATCH v1 08/13] PCI: Remove unused pci_configure_slot() To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: Rajat Jain , Linus Torvalds , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Yinghai Lu Date: Fri, 12 Sep 2014 12:03:41 -0600 Message-ID: <20140912180341.1630.25395.stgit@bhelgaas-glaptop2.roam.corp.google.com> In-Reply-To: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> References: <20140912180141.1630.17120.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP All pci_configure_slot() uses have been removed, so remove the definition as well. Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 27 --------------------------- include/linux/pci_hotplug.h | 2 -- 2 files changed, 29 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 93d2b41163fa..4b3b29bc7a82 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1358,33 +1358,6 @@ static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp) */ } -void pci_configure_slot(struct pci_dev *dev) -{ - struct pci_dev *cdev; - struct hotplug_params hpp; - - if (!(dev->hdr_type == PCI_HEADER_TYPE_NORMAL || - (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE && - (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI))) - return; - - pcie_bus_configure_settings(dev->bus); - - memset(&hpp, 0, sizeof(hpp)); - pci_get_hp_params(dev, &hpp); - - program_hpp_type2(dev, hpp.t2); - program_hpp_type1(dev, hpp.t1); - program_hpp_type0(dev, hpp.t0); - - if (dev->subordinate) { - list_for_each_entry(cdev, &dev->subordinate->devices, - bus_list) - pci_configure_slot(cdev); - } -} -EXPORT_SYMBOL_GPL(pci_configure_slot); - static void pci_configure_device(struct pci_dev *dev) { struct hotplug_params hpp; diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h index 5f2e559af6b0..2706ee9a4327 100644 --- a/include/linux/pci_hotplug.h +++ b/include/linux/pci_hotplug.h @@ -187,6 +187,4 @@ static inline int pci_get_hp_params(struct pci_dev *dev, return -ENODEV; } #endif - -void pci_configure_slot(struct pci_dev *dev); #endif