patch-2.4.25 linux-2.4.25/arch/mips/sgi-ip22/ip22-mc.c

Next file: linux-2.4.25/arch/mips/sgi-ip22/ip22-setup.c
Previous file: linux-2.4.25/arch/mips/sgi-ip22/ip22-int.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/sgi-ip22/ip22-mc.c linux-2.4.25/arch/mips/sgi-ip22/ip22-mc.c
@@ -9,9 +9,8 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 
-#include <asm/addrspace.h>
+#include <asm/io.h>
 #include <asm/bootinfo.h>
-#include <asm/ptrace.h>
 #include <asm/sgialib.h>
 #include <asm/sgi/mc.h>
 #include <asm/sgi/hpc3.h>
@@ -106,7 +105,9 @@
 {
 	u32 tmp;
 
-	sgimc = (struct sgimc_regs *)(KSEG1 + SGIMC_BASE);
+	/* ioremap can't fail */
+	sgimc = (struct sgimc_regs *)
+		ioremap(SGIMC_BASE, sizeof(struct sgimc_regs));
 
 	printk(KERN_INFO "MC: SGI memory controller Revision %d\n",
 	       (int) sgimc->systemid & SGIMC_SYSID_MASKREV);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)