diff options
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index f94f6d5ae297..042e08924421 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -115,13 +115,9 @@ void pci_remove_behind_bridge(struct pci_dev *dev) | |||
115 | { | 115 | { |
116 | struct list_head *l, *n; | 116 | struct list_head *l, *n; |
117 | 117 | ||
118 | if (dev->subordinate) { | 118 | if (dev->subordinate) |
119 | list_for_each_safe(l, n, &dev->subordinate->devices) { | 119 | list_for_each_safe(l, n, &dev->subordinate->devices) |
120 | struct pci_dev *dev = pci_dev_b(l); | 120 | pci_remove_bus_device(pci_dev_b(l)); |
121 | |||
122 | pci_remove_bus_device(dev); | ||
123 | } | ||
124 | } | ||
125 | } | 121 | } |
126 | 122 | ||
127 | static void pci_stop_bus_devices(struct pci_bus *bus) | 123 | static void pci_stop_bus_devices(struct pci_bus *bus) |