[PATCH] nand_imx: fix "used uninitialized" warning on mx25

Sascha Hauer s.hauer at pengutronix.de
Fri Jul 16 03:04:33 EDT 2010


Hi Baruch,

On Sun, Jul 04, 2010 at 08:39:32AM +0300, Baruch Siach wrote:
> drivers/nand/nand_imx.c: In function 'imx_nand_load_image':
> drivers/nand/nand_imx.c:1074: warning: 'host' is used uninitialized in this function

Applied.

Sascha

> 
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
>  drivers/nand/nand_imx.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c
> index 74cdf10..5454e32 100644
> --- a/drivers/nand/nand_imx.c
> +++ b/drivers/nand/nand_imx.c
> @@ -1065,7 +1065,7 @@ void __nand_boot_init imx_nand_load_image(void *dest, int size)
>  	else
>  		host.pagesize_2k = 0;
>  #endif
> -#ifdef CONFIG_ARCH_IMX35
> +#if defined(CONFIG_ARCH_IMX35) || defined(CONFIG_ARCH_IMX25)
>  	if (readl(IMX_CCM_BASE + CCM_RCSR) & (1 << 8))
>  		host.pagesize_2k = 1;
>  	else
> -- 
> 1.7.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list