diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 12:37:38 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:48 -0500 |
commit | 5942ddbc500d1c9b75e571b656be97f65b26adfe (patch) | |
tree | 7e96cfb905fb67bc40e1da30eb8454d674353a36 /drivers/mtd/mtdpart.c | |
parent | 7086c19d07429d697057587caf1e5e0345442d16 (diff) |
mtd: introduce mtd_block_markbad 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 0e7dfc79d337..a3d44c3416b4 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c | |||
@@ -335,7 +335,7 @@ static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) | |||
335 | if (ofs >= mtd->size) | 335 | if (ofs >= mtd->size) |
336 | return -EINVAL; | 336 | return -EINVAL; |
337 | ofs += part->offset; | 337 | ofs += part->offset; |
338 | res = part->master->block_markbad(part->master, ofs); | 338 | res = mtd_block_markbad(part->master, ofs); |
339 | if (!res) | 339 | if (!res) |
340 | mtd->ecc_stats.badblocks++; | 340 | mtd->ecc_stats.badblocks++; |
341 | return res; | 341 | return res; |