mtd/drivers/mtd/nand nand.c,1.63,1.64
gleixner at infradead.org
gleixner at infradead.org
Wed Mar 17 17:50:44 EST 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv20613
Modified Files:
nand.c
Log Message:
use erasesize really
Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- nand.c 17 Mar 2004 16:59:30 -0000 1.63
+++ nand.c 17 Mar 2004 22:50:41 -0000 1.64
@@ -610,7 +610,7 @@
u_char ecc_code[6];
int eccmode;
int *oob_config;
- int blockcheck = (this->erasesize >> this->page_shift) - 1;
+ int blockcheck = (mtd->erasesize >> this->page_shift) - 1;
// use chip default if zero
if (oobsel == NULL)
@@ -797,7 +797,7 @@
int i, col, page;
int erase_state = 0;
struct nand_chip *this = mtd->priv;
- int blockcheck = (this->erasesize >> this->page_shift) - 1;
+ int blockcheck = (mtd->erasesize >> this->page_shift) - 1;
DEBUG (MTD_DEBUG_LEVEL3, "nand_read_oob: from = 0x%08x, len = %i\n", (unsigned int) from, (int) len);
More information about the linux-mtd-cvs
mailing list