aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/mtd.h6
-rw-r--r--include/linux/mtd/pmc551.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index e2e545616b2a..8c243117c087 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -177,7 +177,7 @@ struct mtd_info {
177 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr); 177 int (*_erase) (struct mtd_info *mtd, struct erase_info *instr);
178 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len, 178 int (*_point) (struct mtd_info *mtd, loff_t from, size_t len,
179 size_t *retlen, void **virt, resource_size_t *phys); 179 size_t *retlen, void **virt, resource_size_t *phys);
180 void (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len); 180 int (*_unpoint) (struct mtd_info *mtd, loff_t from, size_t len);
181 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd, 181 unsigned long (*_get_unmapped_area) (struct mtd_info *mtd,
182 unsigned long len, 182 unsigned long len,
183 unsigned long offset, 183 unsigned long offset,
@@ -265,8 +265,10 @@ static inline int mtd_point(struct mtd_info *mtd, loff_t from, size_t len,
265} 265}
266 266
267/* We probably shouldn't allow XIP if the unpoint isn't a NULL */ 267/* We probably shouldn't allow XIP if the unpoint isn't a NULL */
268static inline void mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len) 268static inline int mtd_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
269{ 269{
270 if (!mtd->_point)
271 return -EOPNOTSUPP;
270 return mtd->_unpoint(mtd, from, len); 272 return mtd->_unpoint(mtd, from, len);
271} 273}
272 274
diff --git a/include/linux/mtd/pmc551.h b/include/linux/mtd/pmc551.h
index 27ad40aed19f..da8b98d1b330 100644
--- a/include/linux/mtd/pmc551.h
+++ b/include/linux/mtd/pmc551.h
@@ -34,7 +34,6 @@ struct mypriv {
34 * Function Prototypes 34 * Function Prototypes
35 */ 35 */
36static int pmc551_erase(struct mtd_info *, struct erase_info *); 36static int pmc551_erase(struct mtd_info *, struct erase_info *);
37static void pmc551_unpoint(struct mtd_info *, loff_t, size_t);
38static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, 37static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len,
39 size_t *retlen, void **virt, resource_size_t *phys); 38 size_t *retlen, void **virt, resource_size_t *phys);
40static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); 39static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *);