From: Khoronzhuk, Ivan Date: Mon, 1 Sep 2014 21:20:02 +0000 (+0300) Subject: mtd: nand: davinci_nand: correct keystone RBL layout definition X-Git-Tag: v2014.10-rc3~66^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc12a1f589ff54abafba42f17649955a1536ee04;p=oweals%2Fu-boot.git mtd: nand: davinci_nand: correct keystone RBL layout definition In case when 4K page keystone RBL layout is used the compilation error is appeared. That's because the #ifdef has to be placed under struct name. This patch correct it. Signed-off-by: Ivan Khoronzhuk --- diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index a079b1e5cf..02a1130af9 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -306,8 +306,8 @@ static struct nand_ecclayout nand_davinci_4bit_layout_oobfirst = { }; #if defined CONFIG_KEYSTONE_RBL_NAND -#if defined(CONFIG_SYS_NAND_PAGE_2K) static struct nand_ecclayout nand_keystone_rbl_4bit_layout_oobfirst = { +#if defined(CONFIG_SYS_NAND_PAGE_2K) .eccbytes = 40, .eccpos = { 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,