aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/keystone
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-05-16 13:46:25 -0500
committerStephen Boyd <sboyd@kernel.org>2023-06-16 11:57:50 -0700
commit595409cf07ade54d6265942f25a3d33b0d76a17c (patch)
treec35b5fd9aa41f3bb0b0caf45e8d47bf2c67ae39b /drivers/clk/keystone
parentLinux 6.4-rc1 (diff)
downloadwireguard-linux-595409cf07ade54d6265942f25a3d33b0d76a17c.tar.xz
wireguard-linux-595409cf07ade54d6265942f25a3d33b0d76a17c.zip
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>
Diffstat (limited to 'drivers/clk/keystone')
-rw-r--r--drivers/clk/keystone/syscon-clk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/keystone/syscon-clk.c b/drivers/clk/keystone/syscon-clk.c
index 5d7cc83682da..bd5cec0bd12d 100644
--- a/drivers/clk/keystone/syscon-clk.c
+++ b/drivers/clk/keystone/syscon-clk.c
@@ -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++)