[U-Boot] [PATCH 1/3] imx: mx7: fix build warning when CONFIG_IMX_RDC not enabled

Stefano Babic sbabic at denx.de
Wed Aug 16 10:17:00 UTC 2017


On 12/08/2017 16:10, Peng Fan wrote:
> Fix build warning when CONFIG_IMX_RDC not defined in defconfig.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Fabio Estevam <fabio.estevam at nxp.com>
> ---
>  arch/arm/mach-imx/mx7/soc.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/mach-imx/mx7/soc.c b/arch/arm/mach-imx/mx7/soc.c
> index 4cf977e..ec74b4c 100644
> --- a/arch/arm/mach-imx/mx7/soc.c
> +++ b/arch/arm/mach-imx/mx7/soc.c
> @@ -31,7 +31,7 @@ U_BOOT_DEVICE(imx7_thermal) = {
>  };
>  #endif
>  
> -#ifdef CONFIG_IMX_RDC
> +#if CONFIG_IS_ENABLED(IMX_RDC)
>  /*
>   * In current design, if any peripheral was assigned to both A7 and M4,
>   * it will receive ipg_stop or ipg_wait when any of the 2 platforms enter
> @@ -245,8 +245,9 @@ int arch_cpu_init(void)
>  	mxs_dma_init();
>  #endif
>  
> -	if (IS_ENABLED(CONFIG_IMX_RDC))
> -		isolate_resource();
> +#if CONFIG_IS_ENABLED(IMX_RDC)
> +	isolate_resource();
> +#endif
>  
>  	return 0;
>  }
> 

Applied to u-boot-imx, -master, thanks !

Best regards,
Stefano Babic




-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list