ARM: mxs: Do not search for "fsl,clkctrl"

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>
This commit is contained in:
Fabio Estevam 2023-12-05 11:47:12 -03:00 committed by Shawn Guo
parent d99cfab43c
commit c8705471b9
1 changed files with 3 additions and 1 deletions

View 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;