[MTD NAND] Fix in typo ndfc.c causing wrong ECC layout

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Sep 22 05:59:03 EDT 2006


Commit:     6a545a0d6021a4d759ba6d0c1082d1abf8d64c84
Parent:     17c2dae3aaff9b1e5d83996a5f098ad693f3aeca
commit 6a545a0d6021a4d759ba6d0c1082d1abf8d64c84
Author:     Frank Haverkamp <haver at vnet.ibm.com>
AuthorDate: Wed Sep 20 17:24:52 2006 +0200
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Fri Sep 22 10:30:25 2006 +0100

    [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 <haver at vnet.ibm.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index e5bd88f..039c759 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -168,7 +168,7 @@ static void ndfc_chip_init(struct ndfc_n
 	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;
 }



More information about the linux-mtd-cvs mailing list