aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-08-17 12:07:00 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-08-22 13:31:26 -0400
commit657c2077a2dab228fcf28a708df1b1bcf4195803 (patch)
tree61af7ec744b731078db943088a83b285be2d7845 /drivers/pci
parent0a140577316268b3263fd169d339188ad1636af3 (diff)
PCI: Don't export stop_bus_device and remove_bus_device interfaces
The acpiphp hotplug driver was the only user of pci_stop_bus_device() and __pci_remove_bus_device(), and it now uses pci_stop_and_remove_bus_device() instead, so stop exposing these interfaces. This removes these exported symbols: __pci_remove_bus_device pci_stop_bus_device Tested-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/remove.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
index 04a4861b474..534377f967f 100644
--- a/drivers/pci/remove.c
+++ b/drivers/pci/remove.c
@@ -79,6 +79,8 @@ void pci_remove_bus(struct pci_bus *pci_bus)
79EXPORT_SYMBOL(pci_remove_bus); 79EXPORT_SYMBOL(pci_remove_bus);
80 80
81static void __pci_remove_behind_bridge(struct pci_dev *dev); 81static void __pci_remove_behind_bridge(struct pci_dev *dev);
82static void pci_stop_bus_device(struct pci_dev *dev);
83
82/** 84/**
83 * pci_stop_and_remove_bus_device - remove a PCI device and any children 85 * pci_stop_and_remove_bus_device - remove a PCI device and any children
84 * @dev: the device to remove 86 * @dev: the device to remove
@@ -91,7 +93,7 @@ static void __pci_remove_behind_bridge(struct pci_dev *dev);
91 * device lists, remove the /proc entry, and notify userspace 93 * device lists, remove the /proc entry, and notify userspace
92 * (/sbin/hotplug). 94 * (/sbin/hotplug).
93 */ 95 */
94void __pci_remove_bus_device(struct pci_dev *dev) 96static void __pci_remove_bus_device(struct pci_dev *dev)
95{ 97{
96 if (dev->subordinate) { 98 if (dev->subordinate) {
97 struct pci_bus *b = dev->subordinate; 99 struct pci_bus *b = dev->subordinate;
@@ -103,7 +105,6 @@ void __pci_remove_bus_device(struct pci_dev *dev)
103 105
104 pci_destroy_dev(dev); 106 pci_destroy_dev(dev);
105} 107}
106EXPORT_SYMBOL(__pci_remove_bus_device);
107 108
108void pci_stop_and_remove_bus_device(struct pci_dev *dev) 109void pci_stop_and_remove_bus_device(struct pci_dev *dev)
109{ 110{
@@ -170,7 +171,7 @@ static void pci_stop_bus_devices(struct pci_bus *bus)
170 * and so on). This also stop any subordinate buses and children in a 171 * and so on). This also stop any subordinate buses and children in a
171 * depth-first manner. 172 * depth-first manner.
172 */ 173 */
173void pci_stop_bus_device(struct pci_dev *dev) 174static void pci_stop_bus_device(struct pci_dev *dev)
174{ 175{
175 if (dev->subordinate) 176 if (dev->subordinate)
176 pci_stop_bus_devices(dev->subordinate); 177 pci_stop_bus_devices(dev->subordinate);
@@ -180,4 +181,3 @@ void pci_stop_bus_device(struct pci_dev *dev)
180 181
181EXPORT_SYMBOL(pci_stop_and_remove_bus_device); 182EXPORT_SYMBOL(pci_stop_and_remove_bus_device);
182EXPORT_SYMBOL(pci_stop_and_remove_behind_bridge); 183EXPORT_SYMBOL(pci_stop_and_remove_behind_bridge);
183EXPORT_SYMBOL_GPL(pci_stop_bus_device);