diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 3 |
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 | ||