aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorSingh, Vimal <vimalsingh@ti.com>2008-12-11 19:10:57 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-09-04 04:39:11 -0400
commit9a73290d7735c0671d1d2379ed40025db8b773d0 (patch)
treec3f364a4b12ad972240b43fe41d9d8072008b145 /drivers/mtd/nand/nand_base.c
parent05dd180709fca14fbae617c0dab1bed56be334fc (diff)
mtd: nand_base: allow drivers to choose ECC block size
This patch allows core driver to choose ECC block size in sw ecc case. Signed-off-by: Vimal Singh <vimalsingh@ti.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 268c9a4317bd..4c5e8a74e1b2 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2728,7 +2728,8 @@ int nand_scan_tail(struct mtd_info *mtd)
2728 chip->ecc.write_page_raw = nand_write_page_raw; 2728 chip->ecc.write_page_raw = nand_write_page_raw;
2729 chip->ecc.read_oob = nand_read_oob_std; 2729 chip->ecc.read_oob = nand_read_oob_std;
2730 chip->ecc.write_oob = nand_write_oob_std; 2730 chip->ecc.write_oob = nand_write_oob_std;
2731 chip->ecc.size = 256; 2731 if (!chip->ecc.size)
2732 chip->ecc.size = 256;
2732 chip->ecc.bytes = 3; 2733 chip->ecc.bytes = 3;
2733 break; 2734 break;
2734 2735