mtd: nand: Remove bbt option property if scan fail
Change-Id: Ifb5b500b6ffee551aea5b6aecea629b3d0ea6207 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
parent
f0f5bdc29d
commit
78cac1dffd
|
|
@ -216,8 +216,10 @@ static int nanddev_scan_bbt(struct nand_device *nand)
|
||||||
if (nand->bbt.version == 0) {
|
if (nand->bbt.version == 0) {
|
||||||
nanddev_bbt_format(nand);
|
nanddev_bbt_format(nand);
|
||||||
ret = nanddev_bbt_update(nand);
|
ret = nanddev_bbt_update(nand);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
nand->bbt.option = 0;
|
||||||
pr_err("%s fail\n", __func__);
|
pr_err("%s fail\n", __func__);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue