From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U06pD-0005Xh-Ci for barebox@lists.infradead.org; Tue, 29 Jan 2013 08:45:52 +0000 From: Sascha Hauer Date: Tue, 29 Jan 2013 09:45:39 +0100 Message-Id: <1359449147-30145-5-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1359449147-30145-1-git-send-email-s.hauer@pengutronix.de> References: <1359449147-30145-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 04/12] nios2: Let readl return an unsigned int To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- 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@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox