mtd/drivers/mtd mtdchar.c,1.47,1.48

Greg Ungerer gerg at infradead.org
Mon Sep 30 10:52:10 EDT 2002


Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv11749

Modified Files:
	mtdchar.c 
Log Message:
Removed use of NAND_ECC_NONE in calls to read_ecc and write_ecc.
They are not defind unless you include nand.h, which doesn't
quite seem appropriate here. Instead made the args 0, which is
what other callers of read_ecc and write_ecc seem to do when
they don't care about what the ECC data is.



Index: mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdchar.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- mtdchar.c	26 Sep 2002 00:04:12 -0000	1.47
+++ mtdchar.c	30 Sep 2002 14:52:08 -0000	1.48
@@ -471,7 +471,7 @@
 			return -EFAULT;
 		}
 
-		ret = (mtd->write_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, NAND_ECC_NONE);
+		ret = (mtd->write_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, 0);
 
 		if (copy_to_user((void *)arg + sizeof(u_int32_t), &retlen, sizeof(u_int32_t)))
 			ret = -EFAULT;
@@ -505,7 +505,7 @@
 		if (!databuf)
 			return -ENOMEM;
 		
-		ret = (mtd->read_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, NAND_ECC_NONE);
+		ret = (mtd->read_ecc)(mtd, buf.start, buf.length, &retlen, databuf, NULL, 0);
 
 		if (copy_to_user((void *)arg + sizeof(u_int32_t), &retlen, sizeof(u_int32_t)))
 			ret = -EFAULT;





More information about the linux-mtd-cvs mailing list