soc: imx: Remove Layerscape check
authorFabio Estevam <festevam@gmail.com>
Wed, 8 Dec 2021 20:12:11 +0000 (17:12 -0300)
committerShawn Guo <shawnguo@kernel.org>
Fri, 28 Jan 2022 09:46:08 +0000 (17:46 +0800)
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@gmail.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/soc-imx.c

index 77bc12039c3d444ef81a7404b767523d7acf166b..fab668c83f98fa9a9191bebd73b7fbb135f8ee79 100644 (file)
@@ -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;