summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChristian Hitz <christian.hitz@aizo.com>2011-10-24 08:57:32 +0200
committerNicolas Ferre <nicolas.ferre@atmel.com>2011-11-28 12:10:34 +0100
commita5f70b6717a229ad10aa79382a29a8ee6f1976c3 (patch)
treebd5f4d210f4fcb03b32c29a2ae96486a7d92668e /arch
parentcaca6a03d365883564885f2c1da3e88dcf65d139 (diff)
ARM: at91: fix NAND bus width decoding from system_rev
Make it is safe to assign the return value of this function to u8/u16 variables. Signed-off-by: Christian Hitz <christian.hitz@aizo.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-at91/include/mach/system_rev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/include/mach/system_rev.h b/arch/arm/mach-at91/include/mach/system_rev.h
index 8f4866045b41..ec164a4124c9 100644
--- a/arch/arm/mach-at91/include/mach/system_rev.h
+++ b/arch/arm/mach-at91/include/mach/system_rev.h
@@ -19,7 +19,7 @@
#define BOARD_HAVE_NAND_16BIT (1 << 31)
static inline int board_have_nand_16bit(void)
{
- return system_rev & BOARD_HAVE_NAND_16BIT;
+ return (system_rev & BOARD_HAVE_NAND_16BIT) ? 1 : 0;
}
#endif /* __ARCH_SYSTEM_REV_H__ */