[PATCH Resend] arm: at91: fix NAND bus width decoding from system_rev
From: Christian Hitz <hidden>
Date: 2011-10-24 06:57:32
From: Christian Hitz <hidden>
Date: 2011-10-24 06:57:32
Make it safe to assign the return value of this function to u8/u16 variables. Signed-off-by: Christian Hitz <redacted> Cc: Andrew Victor <redacted> Cc: Nicolas Ferre <redacted> Cc: Jean-Christophe Plagniol-Villard <redacted> --- arch/arm/mach-at91/include/mach/system_rev.h | 2 +- 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 8f48660..ec164a4 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__ */
--
1.7.4.1