From 9b5bc78c64f9358a39c0535a7277852264389d65 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 9 Sep 2007 12:54:11 +0000 Subject: [adm5120] remove volatile derefs git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8706 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/adm5120/files/arch/mips/adm5120/prom.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'target/linux/adm5120/files/arch') diff --git a/target/linux/adm5120/files/arch/mips/adm5120/prom.c b/target/linux/adm5120/files/arch/mips/adm5120/prom.c index 2187477d0..c6187b47a 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) { -- cgit v1.2.3