summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-fixed-rate.c
diff options
context:
space:
mode:
authorAlan Tull <atull@kernel.org>2018-10-18 22:54:11 +0300
committerStephen Boyd <sboyd@kernel.org>2018-10-18 23:40:15 +0300
commit52091c256bdcad0d01e2852a63f19cd2cce6af96 (patch)
tree74127cc6d609ae96ced42ffb8b97ea93d92c1916 /drivers/clk/clk-fixed-rate.c
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
downloadlinux-52091c256bdcad0d01e2852a63f19cd2cce6af96.tar.xz
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: 435779fe1336 ("clk: fixed-rate: Convert into a module platform driver") Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-fixed-rate.c')
-rw-r--r--drivers/clk/clk-fixed-rate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c
index b5c46b3f8764..6d6475c32ee5 100644
--- a/drivers/clk/clk-fixed-rate.c
+++ b/drivers/clk/clk-fixed-rate.c
@@ -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;