summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdchar.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 19:15:39 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 18:25:39 +0000
commit7799f9ac8d8ff2db14736950275249df442baeac (patch)
tree4e1cab283bae84b6a2133883265923e68ef5ac4e /drivers/mtd/mtdchar.c
parent85f2f2a809d658c15b574df02ede92090f45a1f2 (diff)
downloadop-kernel-dev-7799f9ac8d8ff2db14736950275249df442baeac.zip
op-kernel-dev-7799f9ac8d8ff2db14736950275249df442baeac.tar.gz
mtd: introduce mtd_lock 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/mtdchar.c')
-rw-r--r--drivers/mtd/mtdchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index b5722ec..870f2cb 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -824,7 +824,7 @@ static int mtdchar_ioctl(struct file *file, u_int cmd, u_long arg)
if (!mtd->lock)
ret = -EOPNOTSUPP;
else
- ret = mtd->lock(mtd, einfo.start, einfo.length);
+ ret = mtd_lock(mtd, einfo.start, einfo.length);
break;
}
OpenPOWER on IntegriCloud