From 9a6eb3b9d91b3ac570d6f169666d9fa15c34a12e Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Fri, 21 Dec 2007 14:53:27 +1100 Subject: [PATCH] --- yaml --- r: 81157 b: refs/heads/master c: b1b166b7ea2ec15700a8ba5c6ec99c2f9ecad89e h: refs/heads/master i: 81155: 1f064eb61ac84cd5795949d214b7202a6864087e v: v3 --- [refs] | 2 +- trunk/arch/powerpc/kernel/pci_32.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 33d4dab33963..9226527cab4a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0094f2cdcfb6f2132b2ea3b4e85e0f6899c8595b +refs/heads/master: b1b166b7ea2ec15700a8ba5c6ec99c2f9ecad89e diff --git a/trunk/arch/powerpc/kernel/pci_32.c b/trunk/arch/powerpc/kernel/pci_32.c index 37cb7b944319..a9c6cb24aab0 100644 --- a/trunk/arch/powerpc/kernel/pci_32.c +++ b/trunk/arch/powerpc/kernel/pci_32.c @@ -442,9 +442,10 @@ static int __init pcibios_init(void) hose->last_busno = 0xff; bus = pci_scan_bus_parented(hose->parent, hose->first_busno, hose->ops, hose); - if (bus) + if (bus) { pci_bus_add_devices(bus); - hose->last_busno = bus->subordinate; + hose->last_busno = bus->subordinate; + } if (pci_assign_all_buses || next_busno <= hose->last_busno) next_busno = hose->last_busno + pcibios_assign_bus_offset; }