ARM: at91: fix NAND bus width decoding from system_rev
authorChristian Hitz <christian.hitz@aizo.com>
Mon, 24 Oct 2011 06:57:32 +0000 (08:57 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 28 Nov 2011 11:10:34 +0000 (12:10 +0100)
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>
arch/arm/mach-at91/include/mach/system_rev.h

index 8f4866045b41e213172c761f522ffca720a5802e..ec164a4124c9b27aa0c3b72325dc91ec13ddc673 100644 (file)
@@ -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__ */