[PATCH] soc: imx: Remove Layerscape check

Fabio Estevam festevam at gmail.com
Wed Dec 8 12:12:11 PST 2021


Since commit 4ebd29f91629 ("soc: imx: Register SoC device only on i.MX
boards") the soc-imx driver is only registered on i.MX platforms as
intended.

This means that we no longer need to do a specific check for
Layerscape.

Remove the now unneeded "fsl,ls1021a" check.

Signed-off-by: Fabio Estevam <festevam at gmail.com>
---
Commit 4ebd29f91629 ("soc: imx: Register SoC device only on i.MX
boards") is currently in Shawn's imx/fixes branch:

https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git/commit/?h=imx/fixes&id=4ebd29f91629e69da7d57390cdc953772eee03ab

 drivers/soc/imx/soc-imx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/soc/imx/soc-imx.c b/drivers/soc/imx/soc-imx.c
index 77bc12039c3d..fab668c83f98 100644
--- a/drivers/soc/imx/soc-imx.c
+++ b/drivers/soc/imx/soc-imx.c
@@ -40,9 +40,6 @@ static int __init imx_soc_device_init(void)
 	if (!__mxc_cpu_type)
 		return 0;
 
-	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;
-- 
2.25.1




More information about the linux-arm-kernel mailing list