diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 21:37:38 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 22:25:48 +0400 |
commit | 5942ddbc500d1c9b75e571b656be97f65b26adfe (patch) | |
tree | 7e96cfb905fb67bc40e1da30eb8454d674353a36 /drivers/mtd/ubi/io.c | |
parent | 7086c19d07429d697057587caf1e5e0345442d16 (diff) | |
download | linux-5942ddbc500d1c9b75e571b656be97f65b26adfe.tar.xz |
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/ubi/io.c')
-rw-r--r-- | drivers/mtd/ubi/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index a1b683ad639e..5cde4e5ca3e5 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c @@ -669,7 +669,7 @@ int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum) if (!ubi->bad_allowed) return 0; - err = mtd->block_markbad(mtd, (loff_t)pnum * ubi->peb_size); + err = mtd_block_markbad(mtd, (loff_t)pnum * ubi->peb_size); if (err) ubi_err("cannot mark PEB %d bad, error %d", pnum, err); return err; |