public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Maxin B. John <maxin.john@enea.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD
Date: Mon, 15 Sep 2014 10:00:14 +0200	[thread overview]
Message-ID: <20140915080014.GA46329@sestofb10.enea.se> (raw)
In-Reply-To: <1410195856-57769-1-git-send-email-maxin.john@enea.com>

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

  reply	other threads:[~2014-09-15  8:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-08 17:04 [U-Boot] [PATCH] mtdcore: Fix a build error with CONFIG_CMD_MTDPARTS_SPREAD Maxin B. John
2014-09-15  8:00 ` Maxin B. John [this message]
2014-09-17  0:46 ` [U-Boot] " Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2014-07-07 10:37 [U-Boot] [PATCH] " Maxin B. John
2014-07-07 12:17 ` Wolfgang Denk
2014-07-07 13:17   ` Maxin B. John
2014-07-07 13:35     ` Heiko Schocher
2014-07-07 13:40     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140915080014.GA46329@sestofb10.enea.se \
    --to=maxin.john@enea.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox