mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/mtdcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/mtdcore.c +2 -2
@@ -804,7 +804,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 ; }
@@ -820,7 +820,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;
Signature · 1 line
1.9.1
PATCH 1/1 mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD
Gentle ping.
Quoted 31 lines · Maxin B. John
This patch fixes the build error for
CONFIG_CMD_MTDPARTS_SPREADSigned-off-by Maxin B. John <[email protected]>--- drivers/mtd/mtdcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/mtd/mtdcore.c +2
-2@@ -804,7 +804,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 ; }@@ -820,7 +820,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;Signature · 1 line
1.9.1
Quoted 3 lines · maxin.john at enea.com
This patch fixes the build error for
CONFIG_CMD_MTDPARTS_SPREADSigned-off-by Maxin B. John <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140916/879eb778/attachment.pgp>