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:
161040f
)
crypto: mxc-scc - check clk_prepare_enable() error
author
Fabio Estevam
<fabio.estevam@nxp.com>
Mon, 22 Aug 2016 02:37:27 +0000
(23:37 -0300)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 24 Aug 2016 13:04:50 +0000
(21:04 +0800)
clk_prepare_enable() may fail, so we should better check its return
value and propagate it in the case of failure.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mxc-scc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/crypto/mxc-scc.c
b/drivers/crypto/mxc-scc.c
index ff383ef83871659851fafa90c0afe39d99323f98..ee4be1b0d30ba1e0eb38262026b6e8a13d32b6fb 100644
(file)
--- a/
drivers/crypto/mxc-scc.c
+++ b/
drivers/crypto/mxc-scc.c
@@
-668,7
+668,9
@@
static int mxc_scc_probe(struct platform_device *pdev)
return PTR_ERR(scc->clk);
}
- clk_prepare_enable(scc->clk);
+ ret = clk_prepare_enable(scc->clk);
+ if (ret)
+ return ret;
/* clear error status register */
writel(0x0, scc->base + SCC_SCM_ERROR_STATUS);