diff options
author | Khoronzhuk, Ivan <ivan.khoronzhuk@ti.com> | 2014-09-02 00:20:02 +0300 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-04 13:06:00 -0400 |
commit | fc12a1f589ff54abafba42f17649955a1536ee04 (patch) | |
tree | f189e3c5ae175d064b94626e278ae456ea9a0125 /drivers | |
parent | 48ee8d3bb072a4ecf32cef2257e0e35dcf8610f1 (diff) | |
download | u-boot-imx-fc12a1f589ff54abafba42f17649955a1536ee04.zip u-boot-imx-fc12a1f589ff54abafba42f17649955a1536ee04.tar.gz u-boot-imx-fc12a1f589ff54abafba42f17649955a1536ee04.tar.bz2 |
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 <ivan.khoronzhuk@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/davinci_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index a079b1e..02a1130 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, |