ARM: 7537/1: clk: Fix release in devm_clk_put()
authorMark Brown <broonie@sirena.org.uk>
Wed, 19 Sep 2012 11:43:21 +0000 (12:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 19 Sep 2012 20:51:27 +0000 (21:51 +0100)
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>
drivers/clk/clk-devres.c

index f1e7a83426cc2e270c929c71c9df60cbc1d544a0..8f571548870f4b46b37854b3a6ebf90105f68154 100644 (file)
@@ -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);
 }