diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-02-10 12:44:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-23 15:02:26 +0100 |
commit | 6579c8d97ad7fc5671ee60234f3b8388abee5f77 (patch) | |
tree | 36d9262d38e193a2b61617ae7fad1c1822d38ff2 /drivers/clk/clk.c | |
parent | Revert "Revert "driver core: Set fw_devlink=on by default"" (diff) | |
download | linux-6579c8d97ad7fc5671ee60234f3b8388abee5f77.tar.xz linux-6579c8d97ad7fc5671ee60234f3b8388abee5f77.zip |
clk: Mark fwnodes when their clock provider is added
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.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20210210114435.122242-2-tudor.ambarus@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 5052541a0986..60e12e0c036a 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4615,6 +4615,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); |