Message ID | 1312470914-20053-1-git-send-email-david.wagner@free-electrons.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 35be778..f89573a 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -175,12 +175,12 @@ static void __init igep_flash_init(void) ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1); /* Check if NAND/oneNAND is configured */ - if ((ret & 0xC00) == 0x800) + if (GPMC_CONFIG1_DEVICETYPE(ret) == GPMC_DEVICETYPE_NAND) /* NAND found */ pr_err("IGEP: Unsupported NAND found\n"); else { ret = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG7); - if ((ret & 0x3F) == (ONENAND_MAP >> 24)) + if (GPMC_CONFIG7_BASEADDRESS(ret) == (ONENAND_MAP >> 24)) /* ONENAND found */ onenandcs = cs; }
Signed-off-by: David Wagner <david.wagner@free-electrons.com> --- erratum: added the missing s-o-b arch/arm/mach-omap2/board-igep0020.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)