Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 52091c25 authored by Alan Tull's avatar Alan Tull Committed by Stephen Boyd
Browse files

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: default avatarAlan Tull <atull@kernel.org>
Fixes: 435779fe ("clk: fixed-rate: Convert into a module platform driver")
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 5b394b2d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ static int of_fixed_clk_remove(struct platform_device *pdev)
{
	struct clk *clk = platform_get_drvdata(pdev);

	of_clk_del_provider(pdev->dev.of_node);
	clk_unregister_fixed_rate(clk);

	return 0;