clk: Fix release in devm_clk_put()
PATCH 1/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 <[email protected]>
---
Rebased on top of the creation of clk-devres.c.
It appears this also got silently dropped by the patch system :/
drivers/clk/clk-devres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/clk-devres.c +1 -1
@@ -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); }
Signature · 1 line
1.7.10.4