diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-01 10:33:14 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-03 23:20:59 +0100 |
commit | 4104dd917388943f5b0ae87d1360738675c338b0 (patch) | |
tree | 5f168ba90f855831d3cb763091ae1a1733fc3aa0 /drivers/mtd/partition.c | |
parent | 0f9c76614a7f91b92cd76dd08cfca7d77bbe7000 (diff) | |
download | barebox-4104dd917388943f5b0ae87d1360738675c338b0.tar.gz barebox-4104dd917388943f5b0ae87d1360738675c338b0.tar.xz |
mtd: introduce mtd_block_isbad
this allow to do not provide block_isbad at mtd driver level
as example spi flash
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/partition.c')
-rw-r--r-- | drivers/mtd/partition.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/partition.c b/drivers/mtd/partition.c index df2eb40bf8..85f486d0ec 100644 --- a/drivers/mtd/partition.c +++ b/drivers/mtd/partition.c @@ -71,7 +71,7 @@ static int mtd_part_block_isbad(struct mtd_info *mtd, loff_t ofs) if (ofs >= mtd->size) return -EINVAL; ofs += part->offset; - return part->master->block_isbad(part->master, ofs); + return mtd_block_isbad(part->master, ofs); } static int mtd_part_block_markbad(struct mtd_info *mtd, loff_t ofs) |