OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ef997b
)
ARM: 7537/1: clk: Fix release in devm_clk_put()
author
Mark Brown
<broonie@sirena.org.uk>
Wed, 19 Sep 2012 11:43:21 +0000
(12:43 +0100)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-devres.c
b/drivers/clk/clk-devres.c
index
f1e7a83
..
8f57154
100644
(file)
--- 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);
}