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
- Lines: 22
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/mips/sgi-ip22/ip22-mc.c
- Orig date:
2003-08-25 04:44:40.000000000 -0700
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)