]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mtd: nand: davinci_nand: correct keystone RBL layout definition
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>
Mon, 1 Sep 2014 21:20:02 +0000 (00:20 +0300)
committerTom Rini <trini@ti.com>
Thu, 4 Sep 2014 17:06:00 +0000 (13:06 -0400)
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 <ivan.khoronzhuk@ti.com>
drivers/mtd/nand/davinci_nand.c

index a079b1e5cffc54a2044c5602e66f8f2538c29487..02a1130af938c753168de0ff48ec0e13f98aa696 100644 (file)
@@ -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,