We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 353e182 commit fbf4538Copy full SHA for fbf4538
drivers/pci/remove.c
@@ -157,15 +157,16 @@ void pci_remove_root_bus(struct pci_bus *bus)
157
list_for_each_entry_safe(child, tmp,
158
&bus->devices, bus_list)
159
pci_remove_bus_device(child);
160
- pci_remove_bus(bus);
161
- host_bridge->bus = NULL;
162
163
#ifdef CONFIG_PCI_DOMAINS_GENERIC
164
/* Release domain_nr if it was dynamically allocated */
165
if (host_bridge->domain_nr == PCI_DOMAIN_NR_NOT_SET)
166
pci_bus_release_domain_nr(bus, host_bridge->dev.parent);
167
#endif
168
+ pci_remove_bus(bus);
+ host_bridge->bus = NULL;
169
+
170
/* remove the host bridge */
171
device_del(&host_bridge->dev);
172
}
0 commit comments