Skip to content

Commit

Permalink
ARM: at91: fix NAND bus width decoding from system_rev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Hitz authored and Nicolas Ferre committed Nov 28, 2011
1 parent caca6a0 commit a5f70b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/include/mach/system_rev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit a5f70b6

Please sign in to comment.