Skip to content

Commit f98e8a5

Browse files
ribaldabebarino
authored andcommitted
clk: fixed-factor: fix of_node_get-put imbalance
When the fixed factor clock is created by devicetree, of_clk_add_provider is called. Add a call to of_clk_del_provider in the remove function to balance it out. Reported-by: Alan Tull <atull@kernel.org> Fixes: 971451b ("clk: fixed-factor: Convert into a module platform driver") Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 6510223 commit f98e8a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk-fixed-factor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static int of_fixed_factor_clk_remove(struct platform_device *pdev)
210210
{
211211
struct clk *clk = platform_get_drvdata(pdev);
212212

213+
of_clk_del_provider(pdev->dev.of_node);
213214
clk_unregister_fixed_factor(clk);
214215

215216
return 0;

0 commit comments

Comments
 (0)