Skip to content

Commit

Permalink
clk: Mark fwnodes when their clock provider is added
Browse files Browse the repository at this point in the history
This is a follow-up for:
commit 3c9ea42 ("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>
  • Loading branch information
Tudor Ambarus authored and Greg Kroah-Hartman committed Mar 23, 2021
1 parent ea718c6 commit 6579c8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6579c8d

Please sign in to comment.