From 0d2e6a0e157f1194242a8e59d48a2028dcf8a4cd 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 (cherry picked from commit a212eff242efb8dc171479cbaca34049d508f87b) --- 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 4bfabf7..2796ba3 100644 --- a/arch/arm/cpu/armv7/mx7/soc.c +++ b/arch/arm/cpu/armv7/mx7/soc.c @@ -244,8 +244,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