mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
clk: fixed-rate: fix of_node_get-put imbalance
[ Upstream commit52091c256b
] 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:435779fe13
("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>
This commit is contained in:
parent
ebaf1e35da
commit
cde0628c27
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue