aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 7e35755f6931..1a81fde8f333 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -447,6 +447,8 @@ static inline int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs)
447 447
448static inline int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) 448static inline int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs)
449{ 449{
450 if (!mtd->block_markbad)
451 return -EOPNOTSUPP;
450 return mtd->block_markbad(mtd, ofs); 452 return mtd->block_markbad(mtd, ofs);
451} 453}
452 454