Skip to content
Snippets Groups Projects
Commit e872f27a authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

imx: mx7: fix build warning when CONFIG_IMX_RDC not enabled


Fix build warning when CONFIG_IMX_RDC not defined in defconfig.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
parent 9402cafb
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ U_BOOT_DEVICE(imx7_thermal) = { ...@@ -31,7 +31,7 @@ U_BOOT_DEVICE(imx7_thermal) = {
}; };
#endif #endif
#ifdef CONFIG_IMX_RDC #if CONFIG_IS_ENABLED(IMX_RDC)
/* /*
* In current design, if any peripheral was assigned to both A7 and M4, * In current design, if any peripheral was assigned to both A7 and M4,
* it will receive ipg_stop or ipg_wait when any of the 2 platforms enter * it will receive ipg_stop or ipg_wait when any of the 2 platforms enter
...@@ -245,8 +245,9 @@ int arch_cpu_init(void) ...@@ -245,8 +245,9 @@ int arch_cpu_init(void)
mxs_dma_init(); mxs_dma_init();
#endif #endif
if (IS_ENABLED(CONFIG_IMX_RDC)) #if CONFIG_IS_ENABLED(IMX_RDC)
isolate_resource(); isolate_resource();
#endif
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment