diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 10:35:41 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:20 -0500 |
commit | eda95cbf75193808f62948fb0142ba0901d8bee2 (patch) | |
tree | 047bcfa05bc118b1d34327b3e62fa1d10d4bcb43 /drivers/mtd/mtdpart.c | |
parent | 329ad399a9b3adf52c90637b21ca029fcf7f8795 (diff) |
mtd: introduce mtd_write 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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 59cd7974bc50..96574a036567 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -188,8 +188,7 @@ static int part_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
188 | len = 0; | 188 | len = 0; |
189 | else if (to + len > mtd->size) | 189 | else if (to + len > mtd->size) |
190 | len = mtd->size - to; | 190 | len = mtd->size - to; |
191 | return part->master->write(part->master, to + part->offset, | 191 | return mtd_write(part->master, to + part->offset, len, retlen, buf); |
192 | len, retlen, buf); | ||
193 | } | 192 | } |
194 | 193 | ||
195 | static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, | 194 | static int part_panic_write(struct mtd_info *mtd, loff_t to, size_t len, |