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:
parent
0b58452e13
commit
183e6d8b74
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue