9
0
Fork 0

mtd: nand: don't scan bbt if CONFIG_NAND_BBT not set

Signed-off-by: 张忠山 <zzs0213@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
张忠山 2013-11-04 09:27:20 +01:00 committed by Sascha Hauer
parent 0b58452e13
commit 183e6d8b74
1 changed files with 3 additions and 0 deletions

View File

@ -3597,6 +3597,9 @@ int nand_scan_tail(struct mtd_info *mtd)
if (chip->options & NAND_SKIP_BBTSCAN)
return 0;
if (!IS_ENABLED(CONFIG_NAND_BBT))
return 0;
/* Build bad block table */
return chip->scan_bbt(mtd);
}