aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r--arch/powerpc/kernel/pci_64.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 7e74aa2bfbaa..002cd4cac0f3 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -31,7 +31,6 @@
31#include <asm/byteorder.h> 31#include <asm/byteorder.h>
32#include <asm/machdep.h> 32#include <asm/machdep.h>
33#include <asm/ppc-pci.h> 33#include <asm/ppc-pci.h>
34#include <asm/firmware.h>
35 34
36#ifdef DEBUG 35#ifdef DEBUG
37#include <asm/udbg.h> 36#include <asm/udbg.h>
@@ -197,9 +196,6 @@ static void __init pcibios_claim_of_setup(void)
197{ 196{
198 struct pci_bus *b; 197 struct pci_bus *b;
199 198
200 if (firmware_has_feature(FW_FEATURE_ISERIES))
201 return;
202
203 list_for_each_entry(b, &pci_root_buses, node) 199 list_for_each_entry(b, &pci_root_buses, node)
204 pcibios_claim_one_bus(b); 200 pcibios_claim_one_bus(b);
205} 201}
@@ -477,8 +473,7 @@ void __devinit scan_phb(struct pci_controller *hose)
477 bus->secondary = hose->first_busno; 473 bus->secondary = hose->first_busno;
478 hose->bus = bus; 474 hose->bus = bus;
479 475
480 if (!firmware_has_feature(FW_FEATURE_ISERIES)) 476 pcibios_map_io_space(bus);
481 pcibios_map_io_space(bus);
482 477
483 bus->resource[0] = res = &hose->io_resource; 478 bus->resource[0] = res = &hose->io_resource;
484 if (res->flags && request_resource(&ioport_resource, res)) { 479 if (res->flags && request_resource(&ioport_resource, res)) {
@@ -527,15 +522,13 @@ static int __init pcibios_init(void)
527 pci_bus_add_devices(hose->bus); 522 pci_bus_add_devices(hose->bus);
528 } 523 }
529 524
530 if (!firmware_has_feature(FW_FEATURE_ISERIES)) { 525 if (pci_probe_only)
531 if (pci_probe_only) 526 pcibios_claim_of_setup();
532 pcibios_claim_of_setup(); 527 else
533 else 528 /* FIXME: `else' will be removed when
534 /* FIXME: `else' will be removed when 529 pci_assign_unassigned_resources() is able to work
535 pci_assign_unassigned_resources() is able to work 530 correctly with [partially] allocated PCI tree. */
536 correctly with [partially] allocated PCI tree. */ 531 pci_assign_unassigned_resources();
537 pci_assign_unassigned_resources();
538 }
539 532
540 /* Call machine dependent final fixup */ 533 /* Call machine dependent final fixup */
541 if (ppc_md.pcibios_fixup) 534 if (ppc_md.pcibios_fixup)