diff options
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index cc875e6ed159..8fc54b7327bc 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -50,10 +50,8 @@ void pci_remove_bus(struct pci_bus *bus) | |||
50 | list_del(&bus->node); | 50 | list_del(&bus->node); |
51 | pci_bus_release_busn_res(bus); | 51 | pci_bus_release_busn_res(bus); |
52 | up_write(&pci_bus_sem); | 52 | up_write(&pci_bus_sem); |
53 | if (!bus->is_added) | ||
54 | return; | ||
55 | |||
56 | pci_remove_legacy_files(bus); | 53 | pci_remove_legacy_files(bus); |
54 | pcibios_remove_bus(bus); | ||
57 | device_unregister(&bus->dev); | 55 | device_unregister(&bus->dev); |
58 | } | 56 | } |
59 | EXPORT_SYMBOL(pci_remove_bus); | 57 | EXPORT_SYMBOL(pci_remove_bus); |