Thread (54 messages) 54 messages, 10 authors, 2021-04-21

Re: [PATCH] clk: Mark fwnodes when their clock provider is added

From: Saravana Kannan <hidden>
Date: 2021-02-10 19:15:35
Also in: linux-acpi, linux-clk, linux-doc, linux-pm, lkml

On Wed, Feb 10, 2021 at 3:44 AM Tudor Ambarus
[off-list ref] wrote:
This is a follow-up for:
commit 3c9ea42802a1 ("clk: Mark fwnodes when their clock provider is added/removed")

The above commit updated the deprecated of_clk_add_provider(),
but missed to update the preferred of_clk_add_hw_provider().
Update it now.
Thanks Tudor! Good catch!

I checked to make sure the deregistration path undoes this one. So, it
looks good to me.

Reviewed-by: Saravana Kannan <redacted>

-Saravana
quoted hunk ↗ jump to hunk
Signed-off-by: Tudor Ambarus <redacted>
---
 drivers/clk/clk.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 27ff90eacb1f..9370e4dfecae 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -4594,6 +4594,8 @@ int of_clk_add_hw_provider(struct device_node *np,
        if (ret < 0)
                of_clk_del_provider(np);

+       fwnode_dev_initialized(&np->fwnode, true);
+
        return ret;
 }
 EXPORT_SYMBOL_GPL(of_clk_add_hw_provider);
--
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help