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/nand/nandsim.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/nand/nandsim.c')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 34c03be77301..261f478f8cc3 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c | |||
@@ -737,7 +737,7 @@ static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd) | |||
737 | return -EINVAL; | 737 | return -EINVAL; |
738 | } | 738 | } |
739 | offset = erase_block_no * ns->geom.secsz; | 739 | offset = erase_block_no * ns->geom.secsz; |
740 | if (mtd->block_markbad(mtd, offset)) { | 740 | if (mtd_block_markbad(mtd, offset)) { |
741 | NS_ERR("invalid badblocks.\n"); | 741 | NS_ERR("invalid badblocks.\n"); |
742 | return -EINVAL; | 742 | return -EINVAL; |
743 | } | 743 | } |