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/nand/sm_common.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/nand/sm_common.c')
-rw-r--r-- | drivers/mtd/nand/sm_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sm_common.c b/drivers/mtd/nand/sm_common.c index 32ae5af7444f..774c3c266713 100644 --- a/drivers/mtd/nand/sm_common.c +++ b/drivers/mtd/nand/sm_common.c | |||
@@ -55,7 +55,7 @@ static int sm_block_markbad(struct mtd_info *mtd, loff_t ofs) | |||
55 | ops.datbuf = NULL; | 55 | ops.datbuf = NULL; |
56 | 56 | ||
57 | 57 | ||
58 | ret = mtd->write_oob(mtd, ofs, &ops); | 58 | ret = mtd_write_oob(mtd, ofs, &ops); |
59 | if (ret < 0 || ops.oobretlen != SM_OOB_SIZE) { | 59 | if (ret < 0 || ops.oobretlen != SM_OOB_SIZE) { |
60 | printk(KERN_NOTICE | 60 | printk(KERN_NOTICE |
61 | "sm_common: can't mark sector at %i as bad\n", | 61 | "sm_common: can't mark sector at %i as bad\n", |