diff options
-rw-r--r-- | drivers/pci/hotplug/rpadlpar_core.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c index 4d74f0b607..bb3c101c2c 100644 --- a/drivers/pci/hotplug/rpadlpar_core.c +++ b/drivers/pci/hotplug/rpadlpar_core.c | |||
@@ -387,13 +387,8 @@ int dlpar_remove_pci_slot(char *drc_name, struct device_node *dn) | |||
387 | __FUNCTION__, drc_name); | 387 | __FUNCTION__, drc_name); |
388 | return -EIO; | 388 | return -EIO; |
389 | } | 389 | } |
390 | } else { | 390 | } else |
391 | struct pci_dev *dev, *tmp; | 391 | pcibios_remove_pci_devices(bus); |
392 | list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) { | ||
393 | eeh_remove_bus_device(dev); | ||
394 | pci_remove_bus_device(dev); | ||
395 | } | ||
396 | } | ||
397 | 392 | ||
398 | if (unmap_bus_range(bus)) { | 393 | if (unmap_bus_range(bus)) { |
399 | printk(KERN_ERR "%s: failed to unmap bus range\n", | 394 | printk(KERN_ERR "%s: failed to unmap bus range\n", |