aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/remove.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-02-25 16:54:21 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2012-02-27 15:16:55 -0500
commit6b22cf3f35fd332e4cc2c1b27056920b3643667a (patch)
tree81bdab1c27126f91340fcafb4619519dda003490 /drivers/pci/remove.c
parent6754b9e9c33502223db066de50dda8a876f70c2c (diff)
PCI: export __pci_remove_bus_device
Don't switch to pci_remove_bus_device yet, keep the __ prefix for now (the behavior is still the same: remove without stopping first). This allows other out of tree users or pending patches to get notified from compiler warning. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r--drivers/pci/remove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
index bd2be1c4c668..fd77e2bde2e8 100644
--- a/drivers/pci/remove.c
+++ b/drivers/pci/remove.c
@@ -90,7 +90,7 @@ static void __pci_remove_behind_bridge(struct pci_dev *dev);
90 * device lists, remove the /proc entry, and notify userspace 90 * device lists, remove the /proc entry, and notify userspace
91 * (/sbin/hotplug). 91 * (/sbin/hotplug).
92 */ 92 */
93static void __pci_remove_bus_device(struct pci_dev *dev) 93void __pci_remove_bus_device(struct pci_dev *dev)
94{ 94{
95 if (dev->subordinate) { 95 if (dev->subordinate) {
96 struct pci_bus *b = dev->subordinate; 96 struct pci_bus *b = dev->subordinate;
@@ -102,6 +102,8 @@ static void __pci_remove_bus_device(struct pci_dev *dev)
102 102
103 pci_destroy_dev(dev); 103 pci_destroy_dev(dev);
104} 104}
105EXPORT_SYMBOL(__pci_remove_bus_device);
106
105void pci_stop_and_remove_bus_device(struct pci_dev *dev) 107void pci_stop_and_remove_bus_device(struct pci_dev *dev)
106{ 108{
107 pci_stop_bus_device(dev); 109 pci_stop_bus_device(dev);