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

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>

authored by

Fabio Estevam and committed by
Shawn Guo
c8705471 d99cfab4

+3 -1
+3 -1
arch/arm/mach-mxs/mach-mxs.c
··· 356 356 { 357 357 struct device_node *np; 358 358 359 - np = of_find_compatible_node(NULL, NULL, "fsl,clkctrl"); 359 + np = of_find_compatible_node(NULL, NULL, "fsl,imx23-clkctrl"); 360 + if (!np) 361 + np = of_find_compatible_node(NULL, NULL, "fsl,imx28-clkctrl"); 360 362 reset_addr = of_iomap(np, 0); 361 363 if (!reset_addr) 362 364 return -ENODEV;