From: Gabor Juhos Date: Sun, 9 Sep 2007 12:54:11 +0000 (+0000) Subject: remove volatile derefs X-Git-Tag: 8.09_rc1~2768 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=108723067bbfdf07b376c6f903010f22324d1fbe;p=openwrt%2Fsvn-archive%2Fopenwrt.git remove volatile derefs SVN-Revision: 8706 --- diff --git a/target/linux/adm5120/files/arch/mips/adm5120/prom.c b/target/linux/adm5120/files/arch/mips/adm5120/prom.c index 2187477d02..c6187b47a7 100644 --- a/target/linux/adm5120/files/arch/mips/adm5120/prom.c +++ b/target/linux/adm5120/files/arch/mips/adm5120/prom.c @@ -28,12 +28,13 @@ #include #include +#include #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -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) {