Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=90424de8d0646eaf7cddbdb111edaf429dea6042
Commit:     90424de8d0646eaf7cddbdb111edaf429dea6042
Parent:     8c60e5475d8ca614d712cd3e2fe7330480709e02
Author:     Thomas Gleixner <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 5 11:44:05 2007 +0200
Committer:  David Woodhouse <[EMAIL PROTECTED]>
CommitDate: Tue Apr 17 18:28:17 2007 +0100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
---
 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 6af37b8..5b96f1c 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,
        uint8_t *ecc_code = chip->buffers->ecccode;
        int *eccpos = chip->ecc.layout->eccpos;
 
-       nand_read_page_raw(mtd, chip, buf);
+       chip->ecc.read_page_raw(mtd, chip, buf);
 
        for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
                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,
        for (i = 0; i < chip->ecc.total; i++)
                chip->oob_poi[eccpos[i]] = ecc_calc[i];
 
-       nand_write_page_raw(mtd, chip, buf);
+       chip->ecc.write_page_raw(mtd, chip, buf);
 }
 
 /**
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to