devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] clk: keystone: syscon-clk: Allow the clock node to not be of type syscon
@ 2023-05-16 18:46 Andrew Davis
  2023-05-16 18:46 ` [PATCH 2/2] dt-bindings: clock: ehrpwm: Remove unneeded syscon compatible Andrew Davis
  2023-06-16 18:58 ` [PATCH 1/2] clk: keystone: syscon-clk: Allow the clock node to not be of type syscon Stephen Boyd
  0 siblings, 2 replies; 10+ messages in thread
From: Andrew Davis @ 2023-05-16 18:46 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Vignesh Raghavendra
  Cc: linux-clk, devicetree, linux-kernel, Andrew Davis

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>
---
 drivers/clk/keystone/syscon-clk.c | 4 ++--
 1 file 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++)
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-06-23 20:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-16 18:46 [PATCH 1/2] clk: keystone: syscon-clk: Allow the clock node to not be of type syscon Andrew Davis
2023-05-16 18:46 ` [PATCH 2/2] dt-bindings: clock: ehrpwm: Remove unneeded syscon compatible Andrew Davis
2023-05-17  4:36   ` Vignesh Raghavendra
2023-05-17 17:14     ` Andrew Davis
2023-05-17  7:53   ` Krzysztof Kozlowski
2023-06-23 19:59     ` Rob Herring
2023-06-23 20:18       ` Andrew Davis
2023-05-17  8:30   ` Krzysztof Kozlowski
2023-06-16 18:58   ` Stephen Boyd
2023-06-16 18:58 ` [PATCH 1/2] clk: keystone: syscon-clk: Allow the clock node to not be of type syscon Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).