ARM: mxs: Do not search for "fsl,clkctrl"
authorFabio Estevam <festevam@denx.de>
Tue, 5 Dec 2023 14:47:12 +0000 (11:47 -0300)
committerShawn Guo <shawnguo@kernel.org>
Wed, 6 Dec 2023 03:21:43 +0000 (11:21 +0800)
The "fsl,clkctrl" compatible string is not documented.

It is used only to find the base address of the clock controller.

Instead of searching for an undocumented compatible string, search
for "fsl,imx23-clkctrl" and "fsl,imx28-clkctrl".

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-mxs/mach-mxs.c

index 3faf9a1e3e36aa6b70f7858fc61bb4727cea034f..6e017fa306c828d6742030a2d4319bfded040d68 100644 (file)
@@ -356,7 +356,9 @@ static int __init mxs_restart_init(void)
 {
        struct device_node *np;
 
-       np = of_find_compatible_node(NULL, NULL, "fsl,clkctrl");
+       np = of_find_compatible_node(NULL, NULL, "fsl,imx23-clkctrl");
+       if (!np)
+               np = of_find_compatible_node(NULL, NULL, "fsl,imx28-clkctrl");
        reset_addr = of_iomap(np, 0);
        if (!reset_addr)
                return -ENODEV;