Skip to contentSkip to conversation

clk: Fix release in devm_clk_put()

PATCH New Mark Brown 1 participant 1 message Sep 19, 2012 Common clk

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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.

---

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
index f1e7a83..8f57154 100644
@@ -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