[PATCH] [MTD] NAND: Fix typo ndfc.c

Frank Haverkamp haver at vnet.ibm.com
Wed Sep 20 11:24:52 EDT 2006


[PATCH] [MTD] NAND: Fix typo ndfc.c

Due to this typo, a wrong ECC layout table is choosen.

Signed-off-by: Frank Haverkamp <haver at vnet.ibm.com>
---
 drivers/mtd/nand/ndfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: mtd-2.6.git/drivers/mtd/nand/ndfc.c
===================================================================
--- mtd-2.6.git.orig/drivers/mtd/nand/ndfc.c	2006-09-14
16:30:18.000000000 +0200
+++ mtd-2.6.git/drivers/mtd/nand/ndfc.c	2006-09-20 17:11:54.000000000
+0200
@@ -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 mailing list