diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/remove.c | 7 | ||||
-rw-r--r-- | drivers/pcmcia/cardbus.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index 7abe67b45cc8..bd2be1c4c668 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -127,14 +127,15 @@ static void pci_stop_behind_bridge(struct pci_dev *dev) | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * pci_remove_behind_bridge - remove all devices behind a PCI bridge | 130 | * pci_stop_and_remove_behind_bridge - stop and remove all devices behind |
131 | * a PCI bridge | ||
131 | * @dev: PCI bridge device | 132 | * @dev: PCI bridge device |
132 | * | 133 | * |
133 | * Remove all devices on the bus, except for the parent bridge. | 134 | * Remove all devices on the bus, except for the parent bridge. |
134 | * This also removes any child buses, and any devices they may | 135 | * This also removes any child buses, and any devices they may |
135 | * contain in a depth-first manner. | 136 | * contain in a depth-first manner. |
136 | */ | 137 | */ |
137 | void pci_remove_behind_bridge(struct pci_dev *dev) | 138 | void pci_stop_and_remove_behind_bridge(struct pci_dev *dev) |
138 | { | 139 | { |
139 | pci_stop_behind_bridge(dev); | 140 | pci_stop_behind_bridge(dev); |
140 | __pci_remove_behind_bridge(dev); | 141 | __pci_remove_behind_bridge(dev); |
@@ -175,5 +176,5 @@ void pci_stop_bus_device(struct pci_dev *dev) | |||
175 | } | 176 | } |
176 | 177 | ||
177 | EXPORT_SYMBOL(pci_stop_and_remove_bus_device); | 178 | EXPORT_SYMBOL(pci_stop_and_remove_bus_device); |
178 | EXPORT_SYMBOL(pci_remove_behind_bridge); | 179 | EXPORT_SYMBOL(pci_stop_and_remove_behind_bridge); |
179 | EXPORT_SYMBOL_GPL(pci_stop_bus_device); | 180 | EXPORT_SYMBOL_GPL(pci_stop_bus_device); |
diff --git a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c index 9a58862f1401..6e75153c5b4f 100644 --- a/drivers/pcmcia/cardbus.c +++ b/drivers/pcmcia/cardbus.c | |||
@@ -108,5 +108,5 @@ void cb_free(struct pcmcia_socket *s) | |||
108 | struct pci_dev *bridge = s->cb_dev; | 108 | struct pci_dev *bridge = s->cb_dev; |
109 | 109 | ||
110 | if (bridge) | 110 | if (bridge) |
111 | pci_remove_behind_bridge(bridge); | 111 | pci_stop_and_remove_behind_bridge(bridge); |
112 | } | 112 | } |