mtd/drivers/mtd/nand nand_base.c,1.130,1.131

gleixner at infradead.org gleixner at infradead.org
Wed Feb 9 07:20:00 EST 2005


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

Modified Files:
	nand_base.c 
Log Message:
Skip bad block table scan on request

Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -r1.130 -r1.131
--- nand_base.c	24 Jan 2005 03:07:43 -0000	1.130
+++ nand_base.c	9 Feb 2005 12:19:56 -0000	1.131
@@ -2631,6 +2631,10 @@
 	memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo));
 
 	mtd->owner = THIS_MODULE;
+	
+	/* Check, if we should skip the bad block table scan */
+	if (this->options & NAND_SKIP_BBTSCAN)
+		return 0;
 
 	/* Build bad block table */
 	return this->scan_bbt (mtd);





More information about the linux-mtd-cvs mailing list