Skip to content

Commit 125e14b

Browse files
committed
PCI: Remove pci_stop_and_remove_behind_bridge()
The PCMCIA CardBus driver was the only user of pci_stop_and_remove_behind_bridge(), and it now uses pci_stop_and_remove_bus_device() instead, so remove this interface. This removes exported symbol pci_stop_and_remove_behind_bridge. Tested-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
1 parent 657c207 commit 125e14b

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

‎drivers/pci/remove.c‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -121,30 +121,6 @@ static void __pci_remove_behind_bridge(struct pci_dev *dev)
121121
__pci_remove_bus_device(pci_dev_b(l));
122122
}
123123

124-
static void pci_stop_behind_bridge(struct pci_dev *dev)
125-
{
126-
struct list_head *l, *n;
127-
128-
if (dev->subordinate)
129-
list_for_each_safe(l, n, &dev->subordinate->devices)
130-
pci_stop_bus_device(pci_dev_b(l));
131-
}
132-
133-
/**
134-
* pci_stop_and_remove_behind_bridge - stop and remove all devices behind
135-
* a PCI bridge
136-
* @dev: PCI bridge device
137-
*
138-
* Remove all devices on the bus, except for the parent bridge.
139-
* This also removes any child buses, and any devices they may
140-
* contain in a depth-first manner.
141-
*/
142-
void pci_stop_and_remove_behind_bridge(struct pci_dev *dev)
143-
{
144-
pci_stop_behind_bridge(dev);
145-
__pci_remove_behind_bridge(dev);
146-
}
147-
148124
static void pci_stop_bus_devices(struct pci_bus *bus)
149125
{
150126
struct list_head *l, *n;
@@ -180,4 +156,3 @@ static void pci_stop_bus_device(struct pci_dev *dev)
180156
}
181157

182158
EXPORT_SYMBOL(pci_stop_and_remove_bus_device);
183-
EXPORT_SYMBOL(pci_stop_and_remove_behind_bridge);

‎include/linux/pci.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,6 @@ void pci_unregister_driver(struct pci_driver *dev);
10111011
module_driver(__pci_driver, pci_register_driver, \
10121012
pci_unregister_driver)
10131013

1014-
void pci_stop_and_remove_behind_bridge(struct pci_dev *dev);
10151014
struct pci_driver *pci_dev_driver(const struct pci_dev *dev);
10161015
int pci_add_dynid(struct pci_driver *drv,
10171016
unsigned int vendor, unsigned int device,

0 commit comments

Comments
 (0)