Skip to content

Commit 595409c

Browse files
glneobebarino
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent ac9a786 commit 595409c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/keystone/syscon-clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ static int ti_syscon_gate_clk_probe(struct platform_device *pdev)
101101
if (!data)
102102
return -EINVAL;
103103

104-
regmap = syscon_node_to_regmap(dev->of_node);
104+
regmap = device_node_to_regmap(dev->of_node);
105105
if (IS_ERR(regmap))
106106
return dev_err_probe(dev, PTR_ERR(regmap),
107-
"failed to find parent regmap\n");
107+
"failed to get regmap\n");
108108

109109
num_clks = 0;
110110
for (p = data; p->name; p++)

0 commit comments

Comments
 (0)