diff options
author | Alan Tull <atull@kernel.org> | 2018-10-18 14:54:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-27 16:10:47 +0100 |
commit | 0333b8fc793bdb01b454a9c2ad3bf2c63a8cb530 (patch) | |
tree | ddf92f0199ae29ac4bbf60496a7356ca8a5666fd | |
parent | b36c78af0c4d210aa99b705c4d777adf6a44d67f (diff) | |
download | linux-stable-0333b8fc793bdb01b454a9c2ad3bf2c63a8cb530.tar.gz linux-stable-0333b8fc793bdb01b454a9c2ad3bf2c63a8cb530.tar.bz2 linux-stable-0333b8fc793bdb01b454a9c2ad3bf2c63a8cb530.zip |
clk: fixed-rate: fix of_node_get-put imbalance
[ Upstream commit 52091c256bdcad0d01e2852a63f19cd2cce6af96 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/clk/clk-fixed-rate.c | 1 |
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; |