diff options
author | Mike Frysinger <michael.frysinger@analog.com> | 2007-06-21 05:34:16 +0200 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-06-21 05:34:16 +0200 |
commit | 216e39db112da4d25a52aeb956e7da70fdd0d94c (patch) | |
tree | f633c47a0fb6d0e1fae14f49f18b8f7808101f92 /include/asm-blackfin/io.h | |
parent | Blackfin arch: Add definition of dma_mapping_error (diff) | |
download | linux-216e39db112da4d25a52aeb956e7da70fdd0d94c.tar.xz linux-216e39db112da4d25a52aeb956e7da70fdd0d94c.zip |
Blackfin arch: add proper const volatile to addr argument to the read functions
Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to '')
-rw-r--r-- | include/asm-blackfin/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-blackfin/io.h b/include/asm-blackfin/io.h index eac8bcaf64c2..142cb333db29 100644 --- a/include/asm-blackfin/io.h +++ b/include/asm-blackfin/io.h @@ -20,7 +20,7 @@ */ #ifndef __ASSEMBLY__ -static inline unsigned char readb(void __iomem *addr) +static inline unsigned char readb(const volatile void __iomem *addr) { unsigned int val; int tmp; @@ -35,7 +35,7 @@ static inline unsigned char readb(void __iomem *addr) return (unsigned char) val; } -static inline unsigned short readw(void __iomem *addr) +static inline unsigned short readw(const volatile void __iomem *addr) { unsigned int val; int tmp; @@ -50,7 +50,7 @@ static inline unsigned short readw(void __iomem *addr) return (unsigned short) val; } -static inline unsigned int readl(void __iomem *addr) +static inline unsigned int readl(const volatile void __iomem *addr) { unsigned int val; int tmp; |