summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-27 13:29:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-27 14:24:38 +0100
commitbeffb2f71a8992ba466ab719d7998950652adbb7 (patch)
tree87a9ecc4999e74e77bfde318779605f24732d002 /arch/nios2
parenta01e54d2015ea692e96f8909b3b1a75e0443445e (diff)
downloadbarebox-beffb2f71a8992ba466ab719d7998950652adbb7.tar.gz
nios2: Let readl return an unsigned int
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/include/asm/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/io.h b/arch/nios2/include/asm/io.h
index a88f0e2..8ee48e0 100644
--- a/arch/nios2/include/asm/io.h
+++ b/arch/nios2/include/asm/io.h
@@ -37,7 +37,7 @@
({unsigned short val;\
asm volatile("ldhio %0, 0(%1)" : "=r"(val) : "r" (addr)); val; })
#define readl(addr)\
- ({unsigned long val;\
+ ({unsigned int val;\
asm volatile("ldwio %0, 0(%1)" : "=r"(val) : "r" (addr)); val; })
#define writeb(val, addr)\