projects
/
platform
/
kernel
/
linux-exynos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/rtc/rtc-imxdi.c: check the return value from clk_prepare_enable()
[platform/kernel/linux-exynos.git]
/
drivers
/
rtc
/
rtc-imxdi.c
diff --git
a/drivers/rtc/rtc-imxdi.c
b/drivers/rtc/rtc-imxdi.c
index
abd7f90
..
cd741c7
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