aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_base.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2005-02-09 07:20:00 -0500
committerThomas Gleixner <tglx@mtd.linutronix.de>2005-05-23 06:30:07 -0400
commit0040bf382c77414739c933e4d2ee35ff817d0b99 (patch)
treed6f41550decccc536dfbbd46dc7ecccbf6105669 /drivers/mtd/nand/nand_base.c
parent2f82ce1eb637c06dfc60f095cd1891ae0ba4894c (diff)
[MTD] NAND: Skip bad block table scan on request
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r--drivers/mtd/nand/nand_base.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 7094dd5716dc..99abd615a467 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -59,7 +59,7 @@
59 * The AG-AND chips have nice features for speed improvement, 59 * The AG-AND chips have nice features for speed improvement,
60 * which are not supported yet. Read / program 4 pages in one go. 60 * which are not supported yet. Read / program 4 pages in one go.
61 * 61 *
62 * $Id: nand_base.c,v 1.130 2005/01/24 03:07:43 dmarlin Exp $ 62 * $Id: nand_base.c,v 1.131 2005/02/09 12:19:56 gleixner Exp $
63 * 63 *
64 * This program is free software; you can redistribute it and/or modify 64 * This program is free software; you can redistribute it and/or modify
65 * it under the terms of the GNU General Public License version 2 as 65 * it under the terms of the GNU General Public License version 2 as
@@ -2631,6 +2631,10 @@ int nand_scan (struct mtd_info *mtd, int maxchips)
2631 memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo)); 2631 memcpy(&mtd->oobinfo, this->autooob, sizeof(mtd->oobinfo));
2632 2632
2633 mtd->owner = THIS_MODULE; 2633 mtd->owner = THIS_MODULE;
2634
2635 /* Check, if we should skip the bad block table scan */
2636 if (this->options & NAND_SKIP_BBTSCAN)
2637 return 0;
2634 2638
2635 /* Build bad block table */ 2639 /* Build bad block table */
2636 return this->scan_bbt (mtd); 2640 return this->scan_bbt (mtd);