diff options
author | Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> | 2018-11-01 14:15:49 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-11-06 17:27:52 +0100 |
commit | f98e8a572bddbf27032114127d2fcc78fa5e6a9d (patch) | |
tree | 263993eb61a1fd90c1c6ce3829601be46b5eae15 /drivers/clk/clk-fixed-factor.c | |
parent | Linux 4.20-rc1 (diff) | |
download | linux-f98e8a572bddbf27032114127d2fcc78fa5e6a9d.tar.xz linux-f98e8a572bddbf27032114127d2fcc78fa5e6a9d.zip |
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: 971451b3b15d ("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>
Diffstat (limited to 'drivers/clk/clk-fixed-factor.c')
-rw-r--r-- | drivers/clk/clk-fixed-factor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index ef0ca9414f37..ff83e899df71 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -210,6 +210,7 @@ static int of_fixed_factor_clk_remove(struct platform_device *pdev) { struct clk *clk = platform_get_drvdata(pdev); + of_clk_del_provider(pdev->dev.of_node); clk_unregister_fixed_factor(clk); return 0; |