summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-devres.c
diff options
context:
space:
mode:
authorMark Brown <broonie@sirena.org.uk>2012-09-19 13:43:21 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-09-19 22:51:27 +0200
commit20332ff376995daa08dcee2a193555800f17514b (patch)
tree973d01f73f94b6abe8c3465a2773641598a0143a /drivers/clk/clk-devres.c
parentARM: 7534/1: clk: Make the managed clk functions generically available (diff)
downloadlinux-20332ff376995daa08dcee2a193555800f17514b.tar.xz
linux-20332ff376995daa08dcee2a193555800f17514b.zip
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>
Diffstat (limited to '')
-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 f1e7a83426cc..8f571548870f 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);
}