Commit 9ccc4fd2 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] Remove some iSeries platform checks from the PCI code

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent c96bede6
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <asm/machdep.h> #include <asm/machdep.h>
#include <asm/ppc-pci.h> #include <asm/ppc-pci.h>
#include <asm/firmware.h>
#ifdef DEBUG #ifdef DEBUG
#include <asm/udbg.h> #include <asm/udbg.h>
...@@ -197,9 +196,6 @@ static void __init pcibios_claim_of_setup(void) ...@@ -197,9 +196,6 @@ static void __init pcibios_claim_of_setup(void)
{ {
struct pci_bus *b; struct pci_bus *b;
if (firmware_has_feature(FW_FEATURE_ISERIES))
return;
list_for_each_entry(b, &pci_root_buses, node) list_for_each_entry(b, &pci_root_buses, node)
pcibios_claim_one_bus(b); pcibios_claim_one_bus(b);
} }
...@@ -477,7 +473,6 @@ void __devinit scan_phb(struct pci_controller *hose) ...@@ -477,7 +473,6 @@ void __devinit scan_phb(struct pci_controller *hose)
bus->secondary = hose->first_busno; bus->secondary = hose->first_busno;
hose->bus = bus; hose->bus = bus;
if (!firmware_has_feature(FW_FEATURE_ISERIES))
pcibios_map_io_space(bus); pcibios_map_io_space(bus);
bus->resource[0] = res = &hose->io_resource; bus->resource[0] = res = &hose->io_resource;
...@@ -527,7 +522,6 @@ static int __init pcibios_init(void) ...@@ -527,7 +522,6 @@ static int __init pcibios_init(void)
pci_bus_add_devices(hose->bus); pci_bus_add_devices(hose->bus);
} }
if (!firmware_has_feature(FW_FEATURE_ISERIES)) {
if (pci_probe_only) if (pci_probe_only)
pcibios_claim_of_setup(); pcibios_claim_of_setup();
else else
...@@ -535,7 +529,6 @@ static int __init pcibios_init(void) ...@@ -535,7 +529,6 @@ static int __init pcibios_init(void)
pci_assign_unassigned_resources() is able to work pci_assign_unassigned_resources() is able to work
correctly with [partially] allocated PCI tree. */ correctly with [partially] allocated PCI tree. */
pci_assign_unassigned_resources(); pci_assign_unassigned_resources();
}
/* Call machine dependent final fixup */ /* Call machine dependent final fixup */
if (ppc_md.pcibios_fixup) if (ppc_md.pcibios_fixup)
......
...@@ -646,6 +646,8 @@ void __init iSeries_pcibios_init(void) ...@@ -646,6 +646,8 @@ void __init iSeries_pcibios_init(void)
/* Install IO hooks */ /* Install IO hooks */
ppc_pci_io = iseries_pci_io; ppc_pci_io = iseries_pci_io;
pci_probe_only = 1;
/* iSeries has no IO space in the common sense, it needs to set /* iSeries has no IO space in the common sense, it needs to set
* the IO base to 0 * the IO base to 0
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment