projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/clk/clk-devres.c
b/drivers/clk/clk-devres.c
index f1e7a83426cc2e270c929c71c9df60cbc1d544a0..8f571548870f4b46b37854b3a6ebf90105f68154 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);
}