Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peng Fan and committed by
Shawn Guo
7f6e8dff f8951dce

+3
+3
drivers/soc/imx/soc-imx.c
··· 33 33 u32 val; 34 34 int ret; 35 35 36 + if (of_machine_is_compatible("fsl,ls1021a")) 37 + return 0; 38 + 36 39 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); 37 40 if (!soc_dev_attr) 38 41 return -ENOMEM;