Skip to content

Commit

Permalink
ARM: 7537/1: clk: Fix release in devm_clk_put()
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
broonie authored and Russell King committed Sep 19, 2012
1 parent 8ef997b commit 20332ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk-devres.c
Expand Up @@ -48,7 +48,7 @@ void devm_clk_put(struct device *dev, struct clk *clk)
{
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);
}
Expand Down

0 comments on commit 20332ff

Please sign in to comment.