summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@sirena.org.uk>2012-09-19 12:43:21 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-09-19 21:51:27 +0100
commit20332ff376995daa08dcee2a193555800f17514b (patch)
tree973d01f73f94b6abe8c3465a2773641598a0143a
parent8ef997b67f0d779c82e7e533a792c5a6837594cd (diff)
downloadop-kernel-dev-20332ff376995daa08dcee2a193555800f17514b.zip
op-kernel-dev-20332ff376995daa08dcee2a193555800f17514b.tar.gz
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: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--drivers/clk/clk-devres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-devres.c b/drivers/clk/clk-devres.c
index f1e7a83..8f57154 100644
--- a/drivers/clk/clk-devres.c
+++ b/drivers/clk/clk-devres.c
@@ -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);
}
OpenPOWER on IntegriCloud