diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-09-09 12:54:11 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-09-09 12:54:11 +0000 |
commit | 9ad881cd760b46db61783aa3125787fa5e18eeb8 (patch) | |
tree | ccdd7775eec7d328f6f06243d0acc73b93892f26 /target | |
parent | 63ae1bb4fc19262c79c4d13280132c0685317a49 (diff) | |
download | upstream-9ad881cd760b46db61783aa3125787fa5e18eeb8.tar.gz upstream-9ad881cd760b46db61783aa3125787fa5e18eeb8.tar.bz2 upstream-9ad881cd760b46db61783aa3125787fa5e18eeb8.zip |
[adm5120] remove volatile derefs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8706 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/adm5120/prom.c | 13 |
1 files changed, 8 insertions, 5 deletions
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 <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) { |