aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@sirena.org.uk>2012-09-19 07:43:21 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-09-19 16:51:27 -0400
commit20332ff376995daa08dcee2a193555800f17514b (patch)
tree973d01f73f94b6abe8c3465a2773641598a0143a /drivers
parent8ef997b67f0d779c82e7e533a792c5a6837594cd (diff)
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 'drivers')
-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)
48{ 48{
49 int ret; 49 int ret;
50 50
51 ret = devres_destroy(dev, devm_clk_release, devm_clk_match, clk); 51 ret = devres_release(dev, devm_clk_release, devm_clk_match, clk);
52 52
53 WARN_ON(ret); 53 WARN_ON(ret);
54} 54}