mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] nand_imx: fix "used uninitialized" warning on mx25
@ 2010-07-04  5:39 Baruch Siach
  2010-07-16  7:04 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2010-07-04  5:39 UTC (permalink / raw)
  To: barebox

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

Signed-off-by: Baruch Siach <baruch@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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] nand_imx: fix "used uninitialized" warning on mx25
  2010-07-04  5:39 [PATCH] nand_imx: fix "used uninitialized" warning on mx25 Baruch Siach
@ 2010-07-16  7:04 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2010-07-16  7:04 UTC (permalink / raw)
  To: Baruch Siach; +Cc: barebox

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@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@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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-16  7:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-04  5:39 [PATCH] nand_imx: fix "used uninitialized" warning on mx25 Baruch Siach
2010-07-16  7:04 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox