diff options
author | Mark Brown <broonie@sirena.org.uk> | 2012-09-19 12:43:21 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-19 21:51:27 +0100 |
commit | 20332ff376995daa08dcee2a193555800f17514b (patch) | |
tree | 973d01f73f94b6abe8c3465a2773641598a0143a /drivers/clk/clk-devres.c | |
parent | 8ef997b67f0d779c82e7e533a792c5a6837594cd (diff) | |
download | lwn-20332ff376995daa08dcee2a193555800f17514b.tar.gz lwn-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 'drivers/clk/clk-devres.c')
-rw-r--r-- | drivers/clk/clk-devres.c | 2 |
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); } |