aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdconcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdconcat.c')
-rw-r--r--drivers/mtd/mtdconcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c
index aaafb5e18765..fbf3cb124a93 100644
--- a/drivers/mtd/mtdconcat.c
+++ b/drivers/mtd/mtdconcat.c
@@ -647,7 +647,7 @@ static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs)
647 struct mtd_concat *concat = CONCAT(mtd); 647 struct mtd_concat *concat = CONCAT(mtd);
648 int i, res = 0; 648 int i, res = 0;
649 649
650 if (!concat->subdev[0]->block_isbad) 650 if (!mtd_can_have_bb(concat->subdev[0]))
651 return res; 651 return res;
652 652
653 if (ofs > mtd->size) 653 if (ofs > mtd->size)