Skip to content

Commit 52091c2

Browse files
atull-alterabebarino
authored andcommitted
clk: fixed-rate: fix of_node_get-put imbalance
When the fixed rate 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. Signed-off-by: Alan Tull <atull@kernel.org> Fixes: 435779f ("clk: fixed-rate: Convert into a module platform driver") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 5b394b2 commit 52091c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk-fixed-rate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static int of_fixed_clk_remove(struct platform_device *pdev)
200200
{
201201
struct clk *clk = platform_get_drvdata(pdev);
202202

203+
of_clk_del_provider(pdev->dev.of_node);
203204
clk_unregister_fixed_rate(clk);
204205

205206
return 0;

0 commit comments

Comments
 (0)