]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: Remove unused pci_configure_slot()
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 28 Aug 2014 18:21:44 +0000 (12:21 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 13 Sep 2014 02:09:52 +0000 (20:09 -0600)
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>
drivers/pci/probe.c
include/linux/pci_hotplug.h

index e9482867555ba6b5d587def8ef057e1362b826b9..4b3b29bc7a820fc91982f61bb11042c1b9915663 100644 (file)
@@ -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;
index 5f2e559af6b0a7a6ea07247ab405ea48407d4e72..2706ee9a4327f8b307bbe3fe9d116cd69ce79179 100644 (file)
@@ -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