summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-08-28 12:21:44 -0600
committerBjorn Helgaas <bhelgaas@google.com>2014-09-12 20:09:52 -0600
commitfbfa398b84a5fc6e085dedba5ec3e94f21815d05 (patch)
tree16e0727415784b47f2e09196dfaa44f02067bdab
parent81ee57326c9ca612436bd6c98258942d57063c98 (diff)
downloadop-kernel-dev-fbfa398b84a5fc6e085dedba5ec3e94f21815d05.zip
op-kernel-dev-fbfa398b84a5fc6e085dedba5ec3e94f21815d05.tar.gz
PCI: Remove unused pci_configure_slot()
All pci_configure_slot() uses have been removed, so remove the definition as well. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
-rw-r--r--drivers/pci/probe.c28
-rw-r--r--include/linux/pci_hotplug.h2
2 files changed, 0 insertions, 30 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index e948286..4b3b29b 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1358,34 +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;
- int ret;
-
- 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));
- ret = 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 5f2e559..2706ee9 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
OpenPOWER on IntegriCloud