diff mbox

[U-Boot] mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD

Message ID 1410195856-57769-1-git-send-email-maxin.john@enea.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

maxin.john@enea.com Sept. 8, 2014, 5:04 p.m. UTC
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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

maxin.john@enea.com Sept. 15, 2014, 8 a.m. UTC | #1
Gentle ping.

On Mon, Sep 08, 2014 at 07:04:16PM +0200, Maxin B. John wrote:
> 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 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
> index 6ad0357..c9efb3f 100644
> --- a/drivers/mtd/mtdcore.c
> +++ b/drivers/mtd/mtdcore.c
> @@ -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;
> -- 
> 1.9.1
Tom Rini Sept. 17, 2014, 12:46 a.m. UTC | #2
On Mon, Sep 08, 2014 at 07:04:16PM +0200, maxin.john@enea.com wrote:

> This patch fixes the build error for CONFIG_CMD_MTDPARTS_SPREAD
> 
> Signed-off-by: Maxin B. John <maxin.john@enea.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 6ad0357..c9efb3f 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -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;