Commit 20332ff3 authored by Mark Brown's avatar Mark Brown Committed by Russell King

ARM: 7537/1: clk: Fix release in devm_clk_put()

Surprisingly devres_destroy() doesn't call the destructor for the
resource it is destroying, use the newly added devres_release() instead
to fix this.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 8ef997b6
...@@ -48,7 +48,7 @@ void devm_clk_put(struct device *dev, struct clk *clk) ...@@ -48,7 +48,7 @@ void devm_clk_put(struct device *dev, struct clk *clk)
{ {
int ret; int ret;
ret = devres_destroy(dev, devm_clk_release, devm_clk_match, clk); ret = devres_release(dev, devm_clk_release, devm_clk_match, clk);
WARN_ON(ret); WARN_ON(ret);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment