summaryrefslogtreecommitdiff
path: root/drivers/soc/imx/soc-imx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/imx/soc-imx.c')
-rw-r--r--drivers/soc/imx/soc-imx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/imx/soc-imx.c b/drivers/soc/imx/soc-imx.c
index ac6d856ba228..77bc12039c3d 100644
--- a/drivers/soc/imx/soc-imx.c
+++ b/drivers/soc/imx/soc-imx.c
@@ -36,6 +36,10 @@ static int __init imx_soc_device_init(void)
int ret;
int i;
+ /* Return early if this is running on devices with different SoCs */
+ if (!__mxc_cpu_type)
+ return 0;
+
if (of_machine_is_compatible("fsl,ls1021a"))
return 0;