From: Frank Haverkamp Date: Wed, 20 Sep 2006 15:24:52 +0000 (+0200) Subject: [MTD NAND] Fix in typo ndfc.c causing wrong ECC layout X-Git-Tag: v2.6.19-rc1~1299^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6a545a0d6021a4d759ba6d0c1082d1abf8d64c84;p=linux-2.6-omap-h63xx.git [MTD NAND] Fix in typo ndfc.c causing wrong ECC layout Due to this typo, a wrong ECC layout table is chosen. Signed-off-by: Frank Haverkamp Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index e5bd88f2d56..039c759cfbf 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -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; }