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

clk: keystone: syscon-clk: Allow the clock node to not be of type syscon

There is a helper device_node_to_regmap() we can use that does not force
this clock DT node to be a "syscon" node. It should work the same in
this case but allow us to remove the unneeded "syscon" compatible.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20230516184626.154892-1-afd@ti.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Andrew Davis and committed by
Stephen Boyd
595409cf ac9a7868

+2 -2
+2 -2
drivers/clk/keystone/syscon-clk.c
··· 101 101 if (!data) 102 102 return -EINVAL; 103 103 104 - regmap = syscon_node_to_regmap(dev->of_node); 104 + regmap = device_node_to_regmap(dev->of_node); 105 105 if (IS_ERR(regmap)) 106 106 return dev_err_probe(dev, PTR_ERR(regmap), 107 - "failed to find parent regmap\n"); 107 + "failed to get regmap\n"); 108 108 109 109 num_clks = 0; 110 110 for (p = data; p->name; p++)