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-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a545a0d6021a4d759ba6d0c1082d1abf8d64c84;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 e5bd88f2d560..039c759cfbfc 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; }