Skip to content

Commit

Permalink
Blackfin arch: add proper const volatile to addr argument to the read…
Browse files Browse the repository at this point in the history
… functions

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jun 21, 2007
1 parent 334280f commit 216e39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-blackfin/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 216e39d

Please sign in to comment.