@@ -188,8 +188,11 @@ static void __init pcibios_assign_resources(void)
void __init pcibios_resource_survey(void)
{
+ struct pci_bus *bus;
+
DBG("PCI: Allocating resources\n");
- pcibios_allocate_bus_resources(&pci_root_buses);
+ for_each_pci_root_bus(bus)
+ pcibios_allocate_bus_resources(&bus->children);
pcibios_allocate_resources(0);
pcibios_allocate_resources(1);
pcibios_assign_resources();
@@ -234,7 +234,7 @@ static void __init pcibios_fixup_peer_bridges(void)
return;
printk("PCI: Peer bridge fixup\n");
for (n=0; n <= pcibios_last_bus; n++) {
- if (pci_find_bus(0, n))
+ if (pci_bus_exists(0, n))
continue;
bus.number = n;
bus.ops = pci_root_ops;
Enhance FRV architecture specific code to use hotplug-safe iterators to walk PCI buses. Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: David Howells <dhowells@redhat.com> Cc: Jiang Liu <jiang.liu@huawei.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Cc: Yinghai Lu <yinghai@kernel.org> Cc: linux-kernel@vger.kernel.org --- arch/frv/mb93090-mb00/pci-frv.c | 5 ++++- arch/frv/mb93090-mb00/pci-vdk.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-)