|
@@ -118,10 +118,10 @@ int remove_phb_dynamic(struct pci_controller *phb)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /* Unregister the bridge device from sysfs and remove the PCI bus */
|
|
|
|
|
- device_unregister(b->bridge);
|
|
|
|
|
|
|
+ /* Remove the PCI bus and unregister the bridge device from sysfs */
|
|
|
phb->bus = NULL;
|
|
phb->bus = NULL;
|
|
|
pci_remove_bus(b);
|
|
pci_remove_bus(b);
|
|
|
|
|
+ device_unregister(b->bridge);
|
|
|
|
|
|
|
|
/* Now release the IO resource */
|
|
/* Now release the IO resource */
|
|
|
if (res->flags & IORESOURCE_IO)
|
|
if (res->flags & IORESOURCE_IO)
|