aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-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 7cd56d2b9419..a994129ede55 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -389,6 +389,8 @@ static inline int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to,
389static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, 389static inline int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from,
390 size_t len) 390 size_t len)
391{ 391{
392 if (!mtd->lock_user_prot_reg)
393 return -EOPNOTSUPP;
392 return mtd->lock_user_prot_reg(mtd, from, len); 394 return mtd->lock_user_prot_reg(mtd, from, len);
393} 395}
394 396