Merge branch 'rwonce/rework' of git://git.kernel.org/pub/scm/linux/kernel/git/will...
[platform/kernel/linux-starfive.git] / drivers / pci / remove.c
index e9c6b12..95dec03 100644 (file)
@@ -160,6 +160,6 @@ void pci_remove_root_bus(struct pci_bus *bus)
        host_bridge->bus = NULL;
 
        /* remove the host bridge */
-       device_unregister(&host_bridge->dev);
+       device_del(&host_bridge->dev);
 }
 EXPORT_SYMBOL_GPL(pci_remove_root_bus);