aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/kernel/pci.c')
-rw-r--r--arch/ppc64/kernel/pci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/ppc64/kernel/pci.c b/arch/ppc64/kernel/pci.c
index 30247ff74972..66698fdf059e 100644
--- a/arch/ppc64/kernel/pci.c
+++ b/arch/ppc64/kernel/pci.c
@@ -1277,12 +1277,9 @@ long sys_pciconfig_iobase(long which, unsigned long in_bus,
1277 * G5 machines... So when something asks for bus 0 io base 1277 * G5 machines... So when something asks for bus 0 io base
1278 * (bus 0 is HT root), we return the AGP one instead. 1278 * (bus 0 is HT root), we return the AGP one instead.
1279 */ 1279 */
1280#ifdef CONFIG_PPC_PMAC 1280 if (machine_is_compatible("MacRISC4"))
1281 if (systemcfg->platform == PLATFORM_POWERMAC &&
1282 machine_is_compatible("MacRISC4"))
1283 if (in_bus == 0) 1281 if (in_bus == 0)
1284 in_bus = 0xf0; 1282 in_bus = 0xf0;
1285#endif /* CONFIG_PPC_PMAC */
1286 1283
1287 /* That syscall isn't quite compatible with PCI domains, but it's 1284 /* That syscall isn't quite compatible with PCI domains, but it's
1288 * used on pre-domains setup. We return the first match 1285 * used on pre-domains setup. We return the first match