[PATCH] mtd: Blackfin NFC: fix build error after nand_scan_ident() change

Artem Bityutskiy dedekind1 at gmail.com
Mon Aug 30 08:56:13 EDT 2010


On Sat, 2010-08-28 at 01:45 -0400, Mike Frysinger wrote:
> Seems some patches got out sync when being merged.  The Blackfin NFC
> driver was updated to use nand_scan_ident(), but it missed the change
> where nand_scan_ident() now takes 3 arguments.  So update this driver
> to fix build failures.
> 
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> note: this needs to be merged before 2.6.36 final
> 
>  drivers/mtd/nand/bf5xx_nand.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mtd/nand/bf5xx_nand.c b/drivers/mtd/nand/bf5xx_nand.c
> index a382e3d..162c5ea 100644
> --- a/drivers/mtd/nand/bf5xx_nand.c
> +++ b/drivers/mtd/nand/bf5xx_nand.c
> @@ -710,7 +710,7 @@ static int bf5xx_nand_scan(struct mtd_info *mtd)
>  	struct nand_chip *chip = mtd->priv;
>  	int ret;
>  
> -	ret = nand_scan_ident(mtd, 1);
> +	ret = nand_scan_ident(mtd, 1, NULL);
>  	if (ret)
>  		return ret;

Pushed to l2-mtd-2.6.git / master so far, but please, bug dwmw2 about
2.6.36 inclusion, I'll do this as well, though.

-- 
Best Regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list