* [PATCH] clk: ti: Use of_address_to_resource()
@ 2023-03-19 16:32 Rob Herring
2023-03-27 7:29 ` Tony Lindgren
2023-03-27 16:38 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Rob Herring @ 2023-03-19 16:32 UTC (permalink / raw)
To: Tero Kristo, Michael Turquette, Stephen Boyd
Cc: linux-omap, linux-clk, linux-kernel
Replace of_get_address() and of_translate_address() calls with single
call to of_address_to_resource().
Signed-off-by: Rob Herring <robh@kernel.org>
---
drivers/clk/ti/clkctrl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/ti/clkctrl.c b/drivers/clk/ti/clkctrl.c
index f73f402ff7de..b6fce916967c 100644
--- a/drivers/clk/ti/clkctrl.c
+++ b/drivers/clk/ti/clkctrl.c
@@ -512,16 +512,16 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
struct clk_hw_omap *hw;
struct clk *clk;
struct omap_clkctrl_clk *clkctrl_clk = NULL;
- const __be32 *addrp;
bool legacy_naming;
const char *clkctrl_name;
u32 addr;
int ret;
char *c;
u16 soc_mask = 0;
+ struct resource res;
- addrp = of_get_address(node, 0, NULL, NULL);
- addr = (u32)of_translate_address(node, addrp);
+ of_address_to_resource(node, 0, &res);
+ addr = (u32)res.start;
#ifdef CONFIG_ARCH_OMAP4
if (of_machine_is_compatible("ti,omap4"))
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] clk: ti: Use of_address_to_resource()
2023-03-19 16:32 [PATCH] clk: ti: Use of_address_to_resource() Rob Herring
@ 2023-03-27 7:29 ` Tony Lindgren
2023-03-27 7:31 ` Tony Lindgren
2023-03-27 16:38 ` Stephen Boyd
1 sibling, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2023-03-27 7:29 UTC (permalink / raw)
To: Rob Herring
Cc: Tero Kristo, Michael Turquette, Stephen Boyd, linux-omap,
linux-clk, linux-kernel
* Rob Herring <robh@kernel.org> [230319 18:32]:
> Replace of_get_address() and of_translate_address() calls with single
> call to of_address_to_resource().
Applying into omap-for-v6.4/ti-sysc thanks.
Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: ti: Use of_address_to_resource()
2023-03-27 7:29 ` Tony Lindgren
@ 2023-03-27 7:31 ` Tony Lindgren
0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2023-03-27 7:31 UTC (permalink / raw)
To: Rob Herring
Cc: Tero Kristo, Michael Turquette, Stephen Boyd, linux-omap,
linux-clk, linux-kernel
* Tony Lindgren <tony@atomide.com> [230327 10:29]:
> * Rob Herring <robh@kernel.org> [230319 18:32]:
> > Replace of_get_address() and of_translate_address() calls with single
> > call to of_address_to_resource().
>
> Applying into omap-for-v6.4/ti-sysc thanks.
Oops, sorry, was not planning on applying clock patches :) Up to Stephen
to apply it.
Reviewed-by: Tony Lindgren <tony@atomide.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] clk: ti: Use of_address_to_resource()
2023-03-19 16:32 [PATCH] clk: ti: Use of_address_to_resource() Rob Herring
2023-03-27 7:29 ` Tony Lindgren
@ 2023-03-27 16:38 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2023-03-27 16:38 UTC (permalink / raw)
To: Michael Turquette, Rob Herring, Tero Kristo
Cc: linux-omap, linux-clk, linux-kernel
Quoting Rob Herring (2023-03-19 09:32:17)
> Replace of_get_address() and of_translate_address() calls with single
> call to of_address_to_resource().
>
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-27 16:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-19 16:32 [PATCH] clk: ti: Use of_address_to_resource() Rob Herring
2023-03-27 7:29 ` Tony Lindgren
2023-03-27 7:31 ` Tony Lindgren
2023-03-27 16:38 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox