diff options
author | maxin.john@enea.com <maxin.john@enea.com> | 2014-09-08 19:04:16 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-16 12:23:59 -0400 |
commit | 5da163d665c6c1efef03fc9c6b5ff1d6fe91ad08 (patch) | |
tree | 0fd4bddfb67382d61475eed4a99d8ab4bd629bf3 /drivers | |
parent | 7206111e529fe92074c5a4d4eeca402505009802 (diff) | |
download | u-boot-imx-5da163d665c6c1efef03fc9c6b5ff1d6fe91ad08.zip u-boot-imx-5da163d665c6c1efef03fc9c6b5ff1d6fe91ad08.tar.gz u-boot-imx-5da163d665c6c1efef03fc9c6b5ff1d6fe91ad08.tar.bz2 |
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 <maxin.john@enea.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/mtdcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index e0b7e3a..cb27ff2 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; |