diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-07-09 16:25:45 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2020-07-13 16:28:02 +0800 |
commit | 7f6e8dffc30bd22b15ad810fb90ea741c15e6d54 (patch) | |
tree | 34b9e433bea3f09d713f70f1464f673057365b0d /drivers/soc | |
parent | f8951dce10c092075e39ef12c29022548e4c63db (diff) | |
download | linux-7f6e8dffc30bd22b15ad810fb90ea741c15e6d54.tar.bz2 |
soc: imx: check ls1021a
fsl,ls1021a is a mach under arch/arm/mach-imx/, however it could
not use the soc driver which will break caam on ls1021a platform.
So directly return if it is compatible with fsl,ls1021a.
Fixes: 52102a3ba6a61 ("soc: imx: move cpu code to drivers/soc/imx")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/imx/soc-imx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/soc/imx/soc-imx.c b/drivers/soc/imx/soc-imx.c index fec3d672b606..01bfea1cb64a 100644 --- a/drivers/soc/imx/soc-imx.c +++ b/drivers/soc/imx/soc-imx.c @@ -33,6 +33,9 @@ static int __init imx_soc_device_init(void) u32 val; int ret; + if (of_machine_is_compatible("fsl,ls1021a")) + return 0; + soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); if (!soc_dev_attr) return -ENOMEM; |