]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/tx4938/common/prom.c
[MIPS] rbtx4938: misc cleanups
[linux-2.6-omap-h63xx.git] / arch / mips / tx4938 / common / prom.c
index 3189a65f7d7e7e8320f244386eec4357e04c117e..20baeaeba4cd0f85f156abe717a6bd45aea3de94 100644 (file)
  */
 
 #include <linux/init.h>
-#include <linux/mm.h>
-#include <linux/sched.h>
-#include <linux/bootmem.h>
-
-#include <asm/addrspace.h>
-#include <asm/bootinfo.h>
-#include <asm/tx4938/tx4938.h>
+#include <linux/types.h>
+#include <linux/io.h>
 
 static unsigned int __init
 tx4938_process_sdccr(u64 * addr)
@@ -35,7 +30,7 @@ tx4938_process_sdccr(u64 * addr)
        unsigned int bc = 4;
        unsigned int msize = 0;
 
-       val = (*((vu64 *) (addr)));
+       val = ____raw_readq((void __iomem *)addr);
 
        /* MVMCP -- need #defs for these bits masks */
        sdccr_ce = ((val & (1 << 10)) >> 10);