aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 11:55:49 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:33 -0500
commit4403dbfb4541d34e5db33db709094d57d09f7467 (patch)
treec01500ee2c1c2b99b962a2e289299020ff95846a /drivers/mtd
parent482b43adbb7b124316ec72c161b0d1655e759368 (diff)
mtd: introduce mtd_lock_user_prot_reg interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/mtdchar.c2
-rw-r--r--drivers/mtd/mtdpart.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index d8881707ca60..86308acb40e0 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -960,7 +960,7 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg)
960 return -EFAULT; 960 return -EFAULT;
961 if (!mtd->lock_user_prot_reg) 961 if (!mtd->lock_user_prot_reg)
962 return -EOPNOTSUPP; 962 return -EOPNOTSUPP;
963 ret = mtd->lock_user_prot_reg(mtd, oinfo.start, oinfo.length); 963 ret = mtd_lock_user_prot_reg(mtd, oinfo.start, oinfo.length);
964 break; 964 break;
965 } 965 }
966#endif 966#endif
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 1e7b8d1693aa..0bb16d6ed08a 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -229,7 +229,7 @@ static int part_lock_user_prot_reg(struct mtd_info *mtd, loff_t from,
229 size_t len) 229 size_t len)
230{ 230{
231 struct mtd_part *part = PART(mtd); 231 struct mtd_part *part = PART(mtd);
232 return part->master->lock_user_prot_reg(part->master, from, len); 232 return mtd_lock_user_prot_reg(part->master, from, len);
233} 233}
234 234
235static int part_writev(struct mtd_info *mtd, const struct kvec *vecs, 235static int part_writev(struct mtd_info *mtd, const struct kvec *vecs,