Changeset 8706


Ignore:
Timestamp:
2007-09-09T14:54:11+02:00 (10 years ago)
Author:
juhosg
Message:

[adm5120] remove volatile derefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/prom.c

    r8538 r8706  
    2929#include <linux/mm.h> 
    3030 
     31#include <asm/io.h> 
    3132#include <asm/bootinfo.h> 
    3233#include <asm/addrspace.h> 
    3334 
    34 #include <asm/mach-adm5120/adm5120_info.h> 
    35 #include <asm/mach-adm5120/adm5120_defs.h> 
    36 #include <asm/mach-adm5120/adm5120_uart.h> 
     35#include <adm5120_info.h> 
     36#include <adm5120_defs.h> 
     37#include <adm5120_uart.h> 
    3738 
    3839#include <prom/cfe.h> 
     
    253254} 
    254255 
    255 #define UART_READ(r) *(volatile u32 *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r)) 
    256 #define UART_WRITE(r,v) *(volatile u32 *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))=(v) 
     256#define UART_READ(r) \ 
     257        __raw_readl((void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))) 
     258#define UART_WRITE(r, v) \ 
     259        __raw_writel((v), (void __iomem *)(KSEG1ADDR(ADM5120_UART0_BASE)+(r))) 
    257260 
    258261void __init prom_putchar(char ch) 
Note: See TracChangeset for help on using the changeset viewer.