diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-23 10:55:15 +0200 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-07-23 16:15:01 +0200 |
commit | 7f4b009f4232d57084ce0ec5aeb3b57bccb08e4c (patch) | |
tree | fec867f9616fbeeba581a5832cef936ceee696c5 /include/asm-avr32/sysreg.h | |
parent | 1953d128fd07f07d1c3810a28c0863ea64dae1b6 (diff) | |
download | u-boot-imx-7f4b009f4232d57084ce0ec5aeb3b57bccb08e4c.zip u-boot-imx-7f4b009f4232d57084ce0ec5aeb3b57bccb08e4c.tar.gz u-boot-imx-7f4b009f4232d57084ce0ec5aeb3b57bccb08e4c.tar.bz2 |
avr32: Fix printf() format warnings
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32/sysreg.h')
-rw-r--r-- | include/asm-avr32/sysreg.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-avr32/sysreg.h b/include/asm-avr32/sysreg.h index 72ad49e..4f69704 100644 --- a/include/asm-avr32/sysreg.h +++ b/include/asm-avr32/sysreg.h @@ -273,7 +273,9 @@ | SYSREG_BF(name,value)) /* Register access macros */ -#define sysreg_read(reg) __builtin_mfsr(SYSREG_##reg) -#define sysreg_write(reg, value) __builtin_mtsr(SYSREG_##reg, value) +#define sysreg_read(reg) \ + ((unsigned long)__builtin_mfsr(SYSREG_##reg)) +#define sysreg_write(reg, value) \ + __builtin_mtsr(SYSREG_##reg, value) #endif /* __ASM_AVR32_SYSREG_H__ */ |