aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/pci_32.c')
-rw-r--r--arch/powerpc/kernel/pci_32.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c
index beb6f0447d16..9a79a3d700ba 100644
--- a/arch/powerpc/kernel/pci_32.c
+++ b/arch/powerpc/kernel/pci_32.c
@@ -922,17 +922,6 @@ long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn)
922 struct pci_controller* hose; 922 struct pci_controller* hose;
923 long result = -EOPNOTSUPP; 923 long result = -EOPNOTSUPP;
924 924
925 /* Argh ! Please forgive me for that hack, but that's the
926 * simplest way to get existing XFree to not lockup on some
927 * G5 machines... So when something asks for bus 0 io base
928 * (bus 0 is HT root), we return the AGP one instead.
929 */
930#ifdef CONFIG_PPC_PMAC
931 if (machine_is(powermac) && machine_is_compatible("MacRISC4"))
932 if (bus == 0)
933 bus = 0xf0;
934#endif /* CONFIG_PPC_PMAC */
935
936 hose = pci_bus_to_hose(bus); 925 hose = pci_bus_to_hose(bus);
937 if (!hose) 926 if (!hose)
938 return -ENODEV; 927 return -ENODEV;