From: maxin.john@enea.com Date: Mon, 8 Sep 2014 17:04:16 +0000 (+0200) Subject: mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5da163d665c6c1efef03fc9c6b5ff1d6fe91ad08;p=u-boot.git mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD This patch fixes the build error for CONFIG_CMD_MTDPARTS_SPREAD Signed-off-by: Maxin B. John --- diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index e0b7e3af72..cb27ff22be 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -803,7 +803,7 @@ void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, *truncated = 0; *len_incl_bad = 0; - if (!mtd->block_isbad) { + if (!mtd->_block_isbad) { *len_incl_bad = length; return; } @@ -819,7 +819,7 @@ void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, block_len = mtd->erasesize - (offset & (mtd->erasesize - 1)); - if (!mtd->block_isbad(mtd, offset & ~(mtd->erasesize - 1))) + if (!mtd->_block_isbad(mtd, offset & ~(mtd->erasesize - 1))) len_excl_bad += block_len; *len_incl_bad += block_len;