Commit 216e39db authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: add proper const volatile to addr argument to the read functions

Signed-off-by: default avatarMike Frysinger <michael.frysinger@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
parent 334280ff
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
static inline unsigned char readb(void __iomem *addr) static inline unsigned char readb(const volatile void __iomem *addr)
{ {
unsigned int val; unsigned int val;
int tmp; int tmp;
...@@ -35,7 +35,7 @@ static inline unsigned char readb(void __iomem *addr) ...@@ -35,7 +35,7 @@ static inline unsigned char readb(void __iomem *addr)
return (unsigned char) val; 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; unsigned int val;
int tmp; int tmp;
...@@ -50,7 +50,7 @@ static inline unsigned short readw(void __iomem *addr) ...@@ -50,7 +50,7 @@ static inline unsigned short readw(void __iomem *addr)
return (unsigned short) val; 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; unsigned int val;
int tmp; int tmp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment