From: Mark Brown Date: Wed, 19 Sep 2012 11:43:21 +0000 (+0100) Subject: ARM: 7537/1: clk: Fix release in devm_clk_put() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=20332ff376995daa08dcee2a193555800f17514b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Russell King --- 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); }