mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
mtd: introduce mtd_write 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:
committed by
David Woodhouse
parent
329ad399a9
commit
eda95cbf75
@@ -148,7 +148,7 @@ concat_write(struct mtd_info *mtd, loff_t to, size_t len,
|
||||
if (!(subdev->flags & MTD_WRITEABLE))
|
||||
err = -EROFS;
|
||||
else
|
||||
err = subdev->write(subdev, to, size, &retsize, buf);
|
||||
err = mtd_write(subdev, to, size, &retsize, buf);
|
||||
|
||||
if (err)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user