From a212eff242efb8dc171479cbaca34049d508f87b Mon Sep 17 00:00:00 2001 From: Ye Li Date: Wed, 16 Mar 2016 16:27:56 +0800 Subject: MLK-12565 mx7: rdc: Change IS_ENABLED to remove build warning Change to use #ifdef not the IS_ENABLED, because we will get build warning when the CONFIG_IMX_RDC is not set. Signed-off-by: Ye Li --- arch/arm/cpu/armv7/mx7/soc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c index 9cf4c4e..580e127 100644 --- a/arch/arm/cpu/armv7/mx7/soc.c +++ b/arch/arm/cpu/armv7/mx7/soc.c @@ -260,8 +260,9 @@ int arch_cpu_init(void) mxs_dma_init(); #endif - if (IS_ENABLED(CONFIG_IMX_RDC)) - isolate_resource(); +#ifdef CONFIG_IMX_RDC + isolate_resource(); +#endif return 0; } -- cgit v1.1