projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b50184
)
hwrng: atmel - use clk_disable_unprepare instead of clk_disable
author
Wei Yongjun
<weiyongjun1@huawei.com>
Fri, 11 Nov 2016 14:56:47 +0000
(14:56 +0000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 17 Nov 2016 15:34:57 +0000
(23:34 +0800)
Since clk_prepare_enable() is used to get trng->clk, we should
use clk_disable_unprepare() to release it for the error path.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/atmel-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/atmel-rng.c
b/drivers/char/hw_random/atmel-rng.c
index
ae7cae5
..
661c82c
100644
(file)
--- a/
drivers/char/hw_random/atmel-rng.c
+++ b/
drivers/char/hw_random/atmel-rng.c
@@
-94,7
+94,7
@@
static int atmel_trng_probe(struct platform_device *pdev)
return 0;
err_register:
- clk_disable(trng->clk);
+ clk_disable
_unprepare
(trng->clk);
return ret;
}