diff options
Diffstat (limited to 'drivers/mtd/nand/raw/tmio_nand.c')
| -rw-r--r-- | drivers/mtd/nand/raw/tmio_nand.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/mtd/nand/raw/tmio_nand.c b/drivers/mtd/nand/raw/tmio_nand.c index 6d93dd31969b..de8e919d0ebe 100644 --- a/drivers/mtd/nand/raw/tmio_nand.c +++ b/drivers/mtd/nand/raw/tmio_nand.c @@ -34,7 +34,6 @@  #include <linux/interrupt.h>  #include <linux/ioport.h>  #include <linux/mtd/mtd.h> -#include <linux/mtd/nand-ecc-sw-hamming.h>  #include <linux/mtd/rawnand.h>  #include <linux/mtd/partitions.h>  #include <linux/slab.h> @@ -293,12 +292,11 @@ static int tmio_nand_correct_data(struct nand_chip *chip, unsigned char *buf,  	int r0, r1;  	/* assume ecc.size = 512 and ecc.bytes = 6 */ -	r0 = ecc_sw_hamming_correct(buf, read_ecc, calc_ecc, -				    chip->ecc.size, false); +	r0 = rawnand_sw_hamming_correct(chip, buf, read_ecc, calc_ecc);  	if (r0 < 0)  		return r0; -	r1 = ecc_sw_hamming_correct(buf + 256, read_ecc + 3, calc_ecc + 3, -				    chip->ecc.size, false); +	r1 = rawnand_sw_hamming_correct(chip, buf + 256, read_ecc + 3, +					calc_ecc + 3);  	if (r1 < 0)  		return r1;  	return r0 + r1;  |