[U-Boot] [PATCH] onenand: Fix compile errors due to FlexOneNAND

Tom Tom.Rix at windriver.com
Thu Dec 17 17:59:24 CET 2009


Sanjeev Premi wrote:
> This patch fixes the compile error while trying to
> compile for omap3evm.
> 
<snip>
> env_onenand.c: In function 'env_relocate_spec':

>  	env_addr = CONFIG_ENV_ADDR;
> +#ifdef CONFIG_ENV_ADDR_FLEX
>  	if (FLEXONENAND(this))
>  		env_addr = CONFIG_ENV_ADDR_FLEX;
> -
> +#endif

Please also add this #ifdef around the declaration of

	struct onenand_chip *this = &onenand_chip;

There are 'unused variable' warnings now

Otherwise fine.
Tom


More information about the U-Boot mailing list