|
@@ -2127,7 +2127,9 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
|
|
b->sysdata = sysdata;
|
|
b->sysdata = sysdata;
|
|
b->ops = ops;
|
|
b->ops = ops;
|
|
b->number = b->busn_res.start = bus;
|
|
b->number = b->busn_res.start = bus;
|
|
- pci_bus_assign_domain_nr(b, parent);
|
|
|
|
|
|
+#ifdef CONFIG_PCI_DOMAINS_GENERIC
|
|
|
|
+ b->domain_nr = pci_bus_find_domain_nr(b, parent);
|
|
|
|
+#endif
|
|
b2 = pci_find_bus(pci_domain_nr(b), bus);
|
|
b2 = pci_find_bus(pci_domain_nr(b), bus);
|
|
if (b2) {
|
|
if (b2) {
|
|
/* If we already got to this bus through a different bridge, ignore it */
|
|
/* If we already got to this bus through a different bridge, ignore it */
|