diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-16 16:27:56 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-04-05 14:04:35 +0800 |
commit | 0d2e6a0e157f1194242a8e59d48a2028dcf8a4cd (patch) | |
tree | 423c656e1a4ab26643abc7079831110872c507b3 /arch | |
parent | 3cb7b70c27eaa98561b1dcc18a5eaf26d2999f1f (diff) | |
download | u-boot-imx-0d2e6a0e157f1194242a8e59d48a2028dcf8a4cd.zip u-boot-imx-0d2e6a0e157f1194242a8e59d48a2028dcf8a4cd.tar.gz u-boot-imx-0d2e6a0e157f1194242a8e59d48a2028dcf8a4cd.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>
(cherry picked from commit a212eff242efb8dc171479cbaca34049d508f87b)
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/mx7/soc.c | 5 |
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 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; } |