diff options
author | Michal Simek <monstr@monstr.eu> | 2011-10-18 11:33:07 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-10-24 07:57:03 +0200 |
commit | 1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0 (patch) | |
tree | ebab8653a1bf8e3c405d61069e2c63d78a37e697 /arch/microblaze/include | |
parent | e634138e73009c04a6d22208733af3b4cd356a1e (diff) | |
download | u-boot-imx-1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0.zip u-boot-imx-1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0.tar.gz u-boot-imx-1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0.tar.bz2 |
microblaze: Fix strict-aliasing rules for in_be32
readl should work with unsigned int instead of unsigned long.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |