summaryrefslogtreecommitdiff
path: root/include/asm-avr32
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-07-24 12:42:31 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-07-24 12:42:31 +0200
commitba17540844897505b12f310f6a13ff0ab6df2e51 (patch)
tree41f77d831ff87f06f4aff3ca829957290c67b8ab /include/asm-avr32
parenta79c3e8d9c31db25d5ca3ec8e08a97f323410dd4 (diff)
parenta229d291f33308ab7761d39f25fa1a53c0fc00a2 (diff)
downloadu-boot-imx-ba17540844897505b12f310f6a13ff0ab6df2e51.zip
u-boot-imx-ba17540844897505b12f310f6a13ff0ab6df2e51.tar.gz
u-boot-imx-ba17540844897505b12f310f6a13ff0ab6df2e51.tar.bz2
Merge branch 'format-warnings' of git://git.denx.de/u-boot-avr32
Diffstat (limited to 'include/asm-avr32')
-rw-r--r--include/asm-avr32/sysreg.h6
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__ */