mtd/drivers/mtd/nand autcpu12.c,1.17,1.18 nand_bbt.c,1.10,1.11
gleixner at infradead.org
gleixner at infradead.org
Fri May 28 19:20:16 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv30694
Modified Files:
autcpu12.c nand_bbt.c
Log Message:
Fix the bbt protection. Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
Index: autcpu12.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/autcpu12.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- autcpu12.c 28 May 2004 23:01:50 -0000 1.17
+++ autcpu12.c 28 May 2004 23:20:13 -0000 1.18
@@ -187,6 +187,7 @@
/*
this->options = NAND_USE_FLASH_BBT;
*/
+ this->options = NAND_USE_FLASH_BBT;
/* Scan to find existance of the device */
if (nand_scan (autcpu12_mtd, 1)) {
Index: nand_bbt.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_bbt.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- nand_bbt.c 28 May 2004 23:01:50 -0000 1.10
+++ nand_bbt.c 28 May 2004 23:20:13 -0000 1.11
@@ -721,7 +721,7 @@
continue;
}
if (td->options & NAND_BBT_LASTBLOCK)
- block = ((i + 1) * nrblocks) - td->maxblocks - 1;
+ block = ((i + 1) * nrblocks) - td->maxblocks;
else
block = i * nrblocks;
block <<= 1;
More information about the linux-mtd-cvs
mailing list