remove volatile derefs
authorGabor Juhos <juhosg@openwrt.org>
Sun, 9 Sep 2007 12:54:11 +0000 (12:54 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 9 Sep 2007 12:54:11 +0000 (12:54 +0000)
SVN-Revision: 8706

target/linux/adm5120/files/arch/mips/adm5120/prom.c

index 2187477d0223bce0aaeabd397ead216dcb264924..c6187b47a742623d4ca1f4b05bb2bec0e9b7e26c 100644 (file)
 #include <linux/string.h>
 #include <linux/mm.h>
 
+#include <asm/io.h>
 #include <asm/bootinfo.h>
 #include <asm/addrspace.h>
 
-#include <asm/mach-adm5120/adm5120_info.h>
-#include <asm/mach-adm5120/adm5120_defs.h>
-#include <asm/mach-adm5120/adm5120_uart.h>
+#include <adm5120_info.h>
+#include <adm5120_defs.h>
+#include <adm5120_uart.h>
 
 #include <prom/cfe.h>
 #include <prom/generic.h>
@@ -252,8 +253,10 @@ static void __init prom_init_cmdline(void)
 
 }
 
-#define UART_READ(r) *(volatile u32 *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))
-#define UART_WRITE(r,v) *(volatile u32 *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))=(v)
+#define UART_READ(r) \
+       __raw_readl((void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r)))
+#define UART_WRITE(r, v) \
+       __raw_writel((v), (void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r)))
 
 void __init prom_putchar(char ch)
 {