Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox