ia64: Fix resource assignment for root busses

ia64 was assigning resources to root busses after allocations had
been made for child busses. Calling pcibios_setup_root_windows() from
pcibios_fixup_bus() solves this problem by assigning the resources to
the root bus before child busses are scanned.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Tested-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Matthew Wilcox and committed by Linus Torvalds 1d89b30c a76117df

+2 -2
+2 -2
arch/ia64/pci/pci.c
··· 371 * such quirk. So we just ignore the case now. 372 */ 373 pbus = pci_scan_bus_parented(NULL, bus, &pci_root_ops, controller); 374 - if (pbus) 375 - pcibios_setup_root_windows(pbus, controller); 376 377 return pbus; 378 ··· 488 if (b->self) { 489 pci_read_bridge_bases(b); 490 pcibios_fixup_bridge_resources(b->self); 491 } 492 list_for_each_entry(dev, &b->devices, bus_list) 493 pcibios_fixup_device_resources(dev);
··· 371 * such quirk. So we just ignore the case now. 372 */ 373 pbus = pci_scan_bus_parented(NULL, bus, &pci_root_ops, controller); 374 375 return pbus; 376 ··· 490 if (b->self) { 491 pci_read_bridge_bases(b); 492 pcibios_fixup_bridge_resources(b->self); 493 + } else { 494 + pcibios_setup_root_windows(b, b->sysdata); 495 } 496 list_for_each_entry(dev, &b->devices, bus_list) 497 pcibios_fixup_device_resources(dev);