projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
842086d
)
mfd: tc6393xb: Handle return value of clk_prepare_enable
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Thu, 1 Jun 2017 07:14:50 +0000
(12:44 +0530)
committer
Lee Jones
<lee.jones@linaro.org>
Thu, 6 Jul 2017 07:29:12 +0000
(08:29 +0100)
clk_prepare_enable() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tc6393xb.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/tc6393xb.c
b/drivers/mfd/tc6393xb.c
index d16e71bd9482ab2ca005287c9fd9c72b07b4ebe3..0c9f0390e891949ff7c84d78f75a36fff168aecd 100644
(file)
--- a/
drivers/mfd/tc6393xb.c
+++ b/
drivers/mfd/tc6393xb.c
@@
-797,7
+797,9
@@
static int tc6393xb_resume(struct platform_device *dev)
int ret;
int i;
- clk_prepare_enable(tc6393xb->clk);
+ ret = clk_prepare_enable(tc6393xb->clk);
+ if (ret)
+ return ret;
ret = tcpd->resume(dev);
if (ret)