diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 11:29:55 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:24 -0500 |
commit | a2cc5ba075f9bc837d0b4d4ec7328dcefc11859d (patch) | |
tree | a5f2c88ddd21028247bfaf02ca336dd501ed3a5f /drivers/mtd/mtdpart.c | |
parent | fd2819bbc92fc98bed5d612e4acbe16b6326f6bf (diff) |
mtd: introduce mtd_write_oob 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index 6fdc74ef19c1..8a46cd2bb78f 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -217,7 +217,7 @@ static int part_write_oob(struct mtd_info *mtd, loff_t to, | |||
217 | return -EINVAL; | 217 | return -EINVAL; |
218 | if (ops->datbuf && to + ops->len > mtd->size) | 218 | if (ops->datbuf && to + ops->len > mtd->size) |
219 | return -EINVAL; | 219 | return -EINVAL; |
220 | return part->master->write_oob(part->master, to + part->offset, ops); | 220 | return mtd_write_oob(part->master, to + part->offset, ops); |
221 | } | 221 | } |
222 | 222 | ||
223 | static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, | 223 | static int part_write_user_prot_reg(struct mtd_info *mtd, loff_t from, |