aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdpart.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 11:59:12 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:34 -0500
commitb0a31f7b2a668f00a8d0546dfeed65fac871b2da (patch)
tree7379a66d9bfd6ae067f090f1bebac5d47332f5cb /drivers/mtd/mtdpart.c
parent4403dbfb4541d34e5db33db709094d57d09f7467 (diff)
mtd: introduce mtd_writev 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/mtdpart.c')
-rw-r--r--drivers/mtd/mtdpart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 0bb16d6ed08a..c0bfa88c82f3 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -238,8 +238,8 @@ static int part_writev(struct mtd_info *mtd, const struct kvec *vecs,
238 struct mtd_part *part = PART(mtd); 238 struct mtd_part *part = PART(mtd);
239 if (!(mtd->flags & MTD_WRITEABLE)) 239 if (!(mtd->flags & MTD_WRITEABLE))
240 return -EROFS; 240 return -EROFS;
241 return part->master->writev(part->master, vecs, count, 241 return mtd_writev(part->master, vecs, count, to + part->offset,
242 to + part->offset, retlen); 242 retlen);
243} 243}
244 244
245static int part_erase(struct mtd_info *mtd, struct erase_info *instr) 245static int part_erase(struct mtd_info *mtd, struct erase_info *instr)