[PATCH 04/12] nios2: Let readl return an unsigned int
Sascha Hauer
s.hauer at pengutronix.de
Tue Jan 29 03:45:39 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/nios2/include/asm/io.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)\
--
1.7.10.4
More information about the barebox
mailing list