mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD
authormaxin.john@enea.com <maxin.john@enea.com>
Mon, 8 Sep 2014 17:04:16 +0000 (19:04 +0200)
committerTom Rini <trini@ti.com>
Tue, 16 Sep 2014 16:23:59 +0000 (12:23 -0400)
This patch fixes the build error for CONFIG_CMD_MTDPARTS_SPREAD

Signed-off-by: Maxin B. John <maxin.john@enea.com>
drivers/mtd/mtdcore.c

index e0b7e3af72f37e3720f89f9d9044dd9248e35c25..cb27ff22be0c6113d3c7fa3b8171a198aa949f74 100644 (file)
@@ -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;