diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index cead9fc4f99f..bb18476acd7b 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -1233,7 +1233,7 @@ static void nand_write_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip, | |||
1233 | 1233 | ||
1234 | for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { | 1234 | for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) { |
1235 | chip->ecc.hwctl(mtd, NAND_ECC_WRITE); | 1235 | chip->ecc.hwctl(mtd, NAND_ECC_WRITE); |
1236 | chip->write_buf(mtd, p, mtd->writesize); | 1236 | chip->write_buf(mtd, p, eccsize); |
1237 | chip->ecc.calculate(mtd, p, &ecc_calc[i]); | 1237 | chip->ecc.calculate(mtd, p, &ecc_calc[i]); |
1238 | } | 1238 | } |
1239 | 1239 | ||