aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r--drivers/mtd/ubi/io.c2
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)
669 if (!ubi->bad_allowed) 669 if (!ubi->bad_allowed)
670 return 0; 670 return 0;
671 671
672 err = mtd->block_markbad(mtd, (loff_t)pnum * ubi->peb_size); 672 err = mtd_block_markbad(mtd, (loff_t)pnum * ubi->peb_size);
673 if (err) 673 if (err)
674 ubi_err("cannot mark PEB %d bad, error %d", pnum, err); 674 ubi_err("cannot mark PEB %d bad, error %d", pnum, err);
675 return err; 675 return err;