summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-11 10:39:11 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-11 10:39:13 +0100
commitebb9d20927cbe4c25f2f30334aec795c93fd0521 (patch)
tree5e014f51ffcc3ffa74200e097fd9393c23fef4da
parentdeec4486e84448bfd8937a3cd142f349c5d4f49b (diff)
downloadbarebox-ebb9d20927cbe4c25f2f30334aec795c93fd0521.tar.gz
barebox-ebb9d20927cbe4c25f2f30334aec795c93fd0521.tar.xz
mtd: nand: Fix dependeny on CONFIG_NAND_BBT
CONFIG_NAND_BBT no longer exists, so remove the remaining occurences. Fixes: b6bcd96de5 ("mtd: nand: Update to Linux-5.9") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/nand/Kconfig1
-rw-r--r--drivers/mtd/nand/nand_base.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 6a162f81f6..97819e5c0b 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -28,7 +28,6 @@ config NAND_IMX
config NAND_MXS
bool
- select NAND_BBT
select STMP_DEVICE
prompt "i.MX23/28/6 NAND driver"
depends on MXS_APBH_DMA
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index e9c3d7e7c8..2c3c0b360f 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -688,7 +688,7 @@ static int nand_block_markgood_lowlevel(struct nand_chip *chip, loff_t ofs)
}
/* Mark block good in BBT */
- if (IS_ENABLED(CONFIG_NAND_BBT) && chip->bbt) {
+ if (chip->bbt) {
ret = nand_markgood_bbt(chip, ofs);
if (ret)
return ret;