aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdswap.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2011-12-23 12:37:38 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-01-09 13:25:48 -0500
commit5942ddbc500d1c9b75e571b656be97f65b26adfe (patch)
tree7e96cfb905fb67bc40e1da30eb8454d674353a36 /drivers/mtd/mtdswap.c
parent7086c19d07429d697057587caf1e5e0345442d16 (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/mtdswap.c')
-rw-r--r--drivers/mtd/mtdswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c
index 87aa0a6323c3..4441c08b082d 100644
--- a/drivers/mtd/mtdswap.c
+++ b/drivers/mtd/mtdswap.c
@@ -279,7 +279,7 @@ static int mtdswap_handle_badblock(struct mtdswap_dev *d, struct swap_eb *eb)
279 279
280 offset = mtdswap_eb_offset(d, eb); 280 offset = mtdswap_eb_offset(d, eb);
281 dev_warn(d->dev, "Marking bad block at %08llx\n", offset); 281 dev_warn(d->dev, "Marking bad block at %08llx\n", offset);
282 ret = d->mtd->block_markbad(d->mtd, offset); 282 ret = mtd_block_markbad(d->mtd, offset);
283 283
284 if (ret) { 284 if (ret) {
285 dev_warn(d->dev, "Mark block bad failed for block at %08llx " 285 dev_warn(d->dev, "Mark block bad failed for block at %08llx "