aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 478701566ba7..b355a83e7cc2 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -259,6 +259,8 @@ static inline int mtd_point(struct mtd_info *mtd, loff_t from, size_t len,
259 size_t *retlen, void **virt, resource_size_t *phys) 259 size_t *retlen, void **virt, resource_size_t *phys)
260{ 260{
261 *retlen = 0; 261 *retlen = 0;
262 if (!mtd->point)
263 return -EOPNOTSUPP;
262 return mtd->point(mtd, from, len, retlen, virt, phys); 264 return mtd->point(mtd, from, len, retlen, virt, phys);
263} 265}
264 266