diff options
Diffstat (limited to 'drivers/mtd/mtdconcat.c')
-rw-r--r-- | drivers/mtd/mtdconcat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c index 3d9c1ffdbbbf..6fdae191e1ba 100644 --- a/drivers/mtd/mtdconcat.c +++ b/drivers/mtd/mtdconcat.c | |||
@@ -227,8 +227,9 @@ concat_writev(struct mtd_info *mtd, const struct kvec *vecs, | |||
227 | if (!(subdev->flags & MTD_WRITEABLE)) | 227 | if (!(subdev->flags & MTD_WRITEABLE)) |
228 | err = -EROFS; | 228 | err = -EROFS; |
229 | else | 229 | else |
230 | err = subdev->writev(subdev, &vecs_copy[entry_low], | 230 | err = mtd_writev(subdev, &vecs_copy[entry_low], |
231 | entry_high - entry_low + 1, to, &retsize); | 231 | entry_high - entry_low + 1, to, |
232 | &retsize); | ||
232 | 233 | ||
233 | vecs_copy[entry_high].iov_len = old_iov_len - size; | 234 | vecs_copy[entry_high].iov_len = old_iov_len - size; |
234 | vecs_copy[entry_high].iov_base += size; | 235 | vecs_copy[entry_high].iov_base += size; |