[MTD NAND] Fix in typo ndfc.c causing wrong ECC layout
authorFrank Haverkamp <haver@vnet.ibm.com>
Wed, 20 Sep 2006 15:24:52 +0000 (17:24 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 22 Sep 2006 09:30:25 +0000 (10:30 +0100)
Due to this typo, a wrong ECC layout table is chosen.

Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/ndfc.c

index e5bd88f2d560ae3966fe5169c6885c5c0d4d235f..039c759cfbfc5b1e1f28cf607b057d5cfe1fbfe7 100644 (file)
@@ -168,7 +168,7 @@ static void ndfc_chip_init(struct ndfc_nand_mtd *mtd)
        chip->ecc.mode = NAND_ECC_HW;
        chip->ecc.size = 256;
        chip->ecc.bytes = 3;
-       chip->ecclayout = mtd->pl_chip->ecclayout;
+       chip->ecclayout = chip->ecc.layout = mtd->pl_chip->ecclayout;
        mtd->mtd.priv = chip;
        mtd->mtd.owner = THIS_MODULE;
 }