MLK-12565 mx7: rdc: Change IS_ENABLED to remove build warning
authorYe Li <ye.li@nxp.com>
Wed, 16 Mar 2016 08:27:56 +0000 (16:27 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:35 +0000 (14:04 +0800)
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 <ye.li@nxp.com>
(cherry picked from commit a212eff242efb8dc171479cbaca34049d508f87b)

arch/arm/cpu/armv7/mx7/soc.c

index 4bfabf7..2796ba3 100644 (file)
@@ -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;
 }