@@ -387,6 +387,8 @@ pci_acpi_scan_root(struct acpi_pci_root *root)
}
pci_scan_child_bus(pbus);
+ pci_bus_unlock(pbus);
+
return pbus;
out3:
@@ -329,6 +329,7 @@ sn_pci_controller_fixup(int segment, int busnum, struct pci_bus *bus)
goto error_return; /* error, or bus already scanned */
bus->sysdata = controller;
+ pci_bus_unlock(bus);
return;
@@ -624,7 +624,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
nasid_to_cnodeid(tioca_common->ca_closest_nasid);
tioca_common->ca_kernel_private = (u64) tioca_kern;
- bus = pci_find_bus(tioca_common->ca_common.bs_persist_segment,
+ bus = pci_get_bus(tioca_common->ca_common.bs_persist_segment,
tioca_common->ca_common.bs_persist_busnum);
BUG_ON(!bus);
tioca_kern->ca_devices = &bus->devices;
@@ -634,6 +634,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
if (tioca_gart_init(tioca_kern) < 0) {
kfree(tioca_kern);
kfree(tioca_common);
+ pci_bus_put(bus);
return NULL;
}
@@ -654,6 +655,7 @@ tioca_bus_fixup(struct pcibus_bussoft *prom_bussoft, struct pci_controller *cont
/* Setup locality information */
controller->node = tioca_kern->ca_closest_node;
+ pci_bus_put(bus);
return tioca_common;
}
@@ -122,4 +122,4 @@ config PCI_LABEL
select NLS
config PCI_BUS_LOCK
- def_bool y if X86
+ def_bool y if (X86 || IA64)