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:
4071ea2
)
drivers/rtc/rtc-imxdi.c: check the return value from clk_prepare_enable()
author
Fabio Estevam
<
[email protected]
>
Thu, 3 Apr 2014 21:49:38 +0000
(14:49 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 3 Apr 2014 23:21:16 +0000
(16:21 -0700)
clk_prepare_enable() may fail, so let's check its return value and
propagate it in the case of error.
Signed-off-by: Fabio Estevam <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-imxdi.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-imxdi.c
b/drivers/rtc/rtc-imxdi.c
index abd7f9091f34efdd21a3dec74d0e50599b10a524..cd741c77e085353b302c5759122c06eb246a163f 100644
(file)
--- a/
drivers/rtc/rtc-imxdi.c
+++ b/
drivers/rtc/rtc-imxdi.c
@@
-401,7
+401,9
@@
static int __init dryice_rtc_probe(struct platform_device *pdev)
imxdi->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(imxdi->clk))
return PTR_ERR(imxdi->clk);
- clk_prepare_enable(imxdi->clk);
+ rc = clk_prepare_enable(imxdi->clk);
+ if (rc)
+ return rc;
/*
* Initialize dryice hardware