projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0becd
)
hwrng: omap3-rom - Use devm_clk_get()
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 27 Feb 2014 05:02:24 +0000
(14:02 +0900)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 10 Mar 2014 12:13:36 +0000
(20:13 +0800)
Use devm_clk_get() to make cleanup paths simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/omap3-rom-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/omap3-rom-rng.c
b/drivers/char/hw_random/omap3-rom-rng.c
index c853e9e685737eac870b5eb95f7337678e313a43..6f2eaffed623a766838624f2a02fd47d9edf6137 100644
(file)
--- a/
drivers/char/hw_random/omap3-rom-rng.c
+++ b/
drivers/char/hw_random/omap3-rom-rng.c
@@
-103,7
+103,7
@@
static int omap3_rom_rng_probe(struct platform_device *pdev)
}
setup_timer(&idle_timer, omap3_rom_rng_idle, 0);
- rng_clk = clk_get(&pdev->dev, "ick");
+ rng_clk =
devm_
clk_get(&pdev->dev, "ick");
if (IS_ERR(rng_clk)) {
pr_err("unable to get RNG clock\n");
return PTR_ERR(rng_clk);
@@
-120,7
+120,6
@@
static int omap3_rom_rng_remove(struct platform_device *pdev)
{
hwrng_unregister(&omap3_rom_rng_ops);
clk_disable_unprepare(rng_clk);
- clk_put(rng_clk);
return 0;
}