diff options
author | Thomas Gleixner <tglx@inhell4.tec.linutronix.de> | 2007-04-05 05:44:05 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-04-17 13:28:17 -0400 |
commit | 90424de8d0646eaf7cddbdb111edaf429dea6042 (patch) | |
tree | a3ff4a8f488b39dc8336c9e63978d263630a4c2c /drivers/mtd/nand | |
parent | 8c60e5475d8ca614d712cd3e2fe7330480709e02 (diff) |
[MTD] [NAND] Use ecc.read/write_page_raw consequently
Use the functions in the ecc structure instead of the default ones,
so the override by the board driver is effective also for software ecc
code paths.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 6af37b8cff65..5b96f1c5759f 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -771,7 +771,7 @@ static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, | |||
771 | uint8_t *ecc_code = chip->buffers->ecccode; | 771 | uint8_t *ecc_code = chip->buffers->ecccode; |
772 | int *eccpos = chip->ecc.layout->eccpos; | 772 | int *eccpos = chip->ecc.layout->eccpos; |
773 | 773 | ||
774 | nand_read_page_raw(mtd, chip, buf); | 774 | chip->ecc.read_page_raw(mtd, chip, buf); |
775 | 775 | ||
776 | for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) | 776 | for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize) |
777 | chip->ecc.calculate(mtd, p, &ecc_calc[i]); | 777 | chip->ecc.calculate(mtd, p, &ecc_calc[i]); |
@@ -1426,7 +1426,7 @@ static void nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip, | |||
1426 | for (i = 0; i < chip->ecc.total; i++) | 1426 | for (i = 0; i < chip->ecc.total; i++) |
1427 | chip->oob_poi[eccpos[i]] = ecc_calc[i]; | 1427 | chip->oob_poi[eccpos[i]] = ecc_calc[i]; |
1428 | 1428 | ||
1429 | nand_write_page_raw(mtd, chip, buf); | 1429 | chip->ecc.write_page_raw(mtd, chip, buf); |
1430 | } | 1430 | } |
1431 | 1431 | ||
1432 | /** | 1432 | /** |