mtd: introduce mtd_can_have_bb helper
[firefly-linux-kernel-4.4.55.git] / drivers / mtd / mtdconcat.c
index aaafb5e187653a6365560f7cf77c2ee80f529b57..fbf3cb124a93f9779a70206382e0025ee2b2d95f 100644 (file)
@@ -647,7 +647,7 @@ static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs)
        struct mtd_concat *concat = CONCAT(mtd);
        int i, res = 0;
 
-       if (!concat->subdev[0]->block_isbad)
+       if (!mtd_can_have_bb(concat->subdev[0]))
                return res;
 
        if (ofs > mtd->size)