mtd: introduce mtd_lock interface

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
Artem Bityutskiy
2011-12-23 19:15:39 +02:00
committed by David Woodhouse
parent 85f2f2a809
commit 7799f9ac8d
5 changed files with 11 additions and 6 deletions

View File

@@ -556,7 +556,7 @@ static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
size = len;
if (subdev->lock) {
err = subdev->lock(subdev, ofs, size);
err = mtd_lock(subdev, ofs, size);
if (err)
break;
} else