diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-25 10:07:16 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-25 13:45:27 +0200 |
commit | f5bbdacc41939f89d8ccb18dd79cd9b21c0cb75d (patch) | |
tree | c9e45db9701c41c842282b0432d915cc9facc013 /drivers/mtd/nand/diskonchip.c | |
parent | [MTD] NAND Add read/write function pointers to struct nand_ecc_ctrl (diff) | |
download | linux-f5bbdacc41939f89d8ccb18dd79cd9b21c0cb75d.tar.xz linux-f5bbdacc41939f89d8ccb18dd79cd9b21c0cb75d.zip |
[MTD] NAND Modularize read function
Split the core of the read function out and implement
seperate handling functions for software and hardware
ECC.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/nand/diskonchip.c')
-rw-r--r-- | drivers/mtd/nand/diskonchip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c index 2ec9080e2b14..83af6f05cd00 100644 --- a/drivers/mtd/nand/diskonchip.c +++ b/drivers/mtd/nand/diskonchip.c @@ -968,12 +968,14 @@ static int doc200x_calculate_ecc(struct mtd_info *mtd, const u_char *dat, unsign return 0; } -static int doc200x_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc) +static int doc200x_correct_data(struct mtd_info *mtd, u_char *dat, + u_char *read_ecc, u_char *isnull) { int i, ret = 0; struct nand_chip *this = mtd->priv; struct doc_priv *doc = this->priv; void __iomem *docptr = doc->virtadr; + uint8_t calc_ecc[6]; volatile u_char dummy; int emptymatch = 1; |