summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-16 16:27:56 +0800
committerYe Li <ye.li@nxp.com>2016-03-25 16:40:02 +0800
commita212eff242efb8dc171479cbaca34049d508f87b (patch)
treeb4486786d8d4c1e750d1d5a12bf7c329eff626b1
parente5cc58b71e28b2bb3c66fbe8af373cff31eb3017 (diff)
downloadu-boot-imx-a212eff242efb8dc171479cbaca34049d508f87b.zip
u-boot-imx-a212eff242efb8dc171479cbaca34049d508f87b.tar.gz
u-boot-imx-a212eff242efb8dc171479cbaca34049d508f87b.tar.bz2
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 <ye.li@nxp.com>
-rw-r--r--arch/arm/cpu/armv7/mx7/soc.c5
1 files 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;
}