projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: introduce mtd_can_have_bb helper
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
mtdconcat.c
diff --git
a/drivers/mtd/mtdconcat.c
b/drivers/mtd/mtdconcat.c
index aaafb5e187653a6365560f7cf77c2ee80f529b57..fbf3cb124a93f9779a70206382e0025ee2b2d95f 100644
(file)
--- 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)
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)