diff mbox

[U-Boot,v2] microblaze: Fix strict-aliasign rules for in_be32

Message ID 1318933530-18161-1-git-send-email-monstr@monstr.eu
State Accepted
Commit 1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0
Headers show

Commit Message

Michal Simek Oct. 18, 2011, 10:25 a.m. UTC
readl should work with unsigned int instead of unsigned long.

Signed-off-by: Michal Simek <monstr@monstr.eu>

---
v2: Fix coding style issue.
---
 arch/microblaze/include/asm/io.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Wolfgang Denk Oct. 18, 2011, 11:04 a.m. UTC | #1
Dear Michal Simek,

In message <1318933530-18161-1-git-send-email-monstr@monstr.eu> you wrote:
> readl should work with unsigned int instead of unsigned long.

Please also fix the typo in the Subject: s/aliasign/aliasing/

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h
index 7e190d1..584cbce 100644
--- a/arch/microblaze/include/asm/io.h
+++ b/arch/microblaze/include/asm/io.h
@@ -25,7 +25,7 @@ 
 #define readw(addr) \
   ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; })
 #define readl(addr) \
-  ({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; })
+	({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; })
 
 #define writeb(b, addr) \
   (void)((*(volatile unsigned char *) (addr)) = (b))