Skip to content

Commit

Permalink
clk: keystone: syscon-clk: Allow the clock node to not be of type syscon
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Davis authored and Stephen Boyd committed Jun 16, 2023
1 parent ac9a786 commit 595409c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/clk/keystone/syscon-clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ static int ti_syscon_gate_clk_probe(struct platform_device *pdev)
if (!data)
return -EINVAL;

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

num_clks = 0;
for (p = data; p->name; p++)
Expand Down

0 comments on commit 595409c

Please sign in to comment.