projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a94dd87
)
watchdog: s3c2410_wdt: Check return value of clk_prepare_enable
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 4 Mar 2014 09:34:35 +0000
(15:04 +0530)
committer
Wim Van Sebroeck
<wim@iguana.be>
Mon, 31 Mar 2014 11:33:16 +0000
(13:33 +0200)
clk_prepare_enable can fail. Check its return value.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/s3c2410_wdt.c
b/drivers/watchdog/s3c2410_wdt.c
index a0f8f771adec6fa74c77968f388e4182d2f3f865..7c6ccd071baf502711cf0491daa3fa215cb4b9cb 100644
(file)
--- a/
drivers/watchdog/s3c2410_wdt.c
+++ b/
drivers/watchdog/s3c2410_wdt.c
@@
-525,7
+525,11
@@
static int s3c2410wdt_probe(struct platform_device *pdev)
goto err;
}
- clk_prepare_enable(wdt->clock);
+ ret = clk_prepare_enable(wdt->clock);
+ if (ret < 0) {
+ dev_err(dev, "failed to enable clock\n");
+ return ret;
+ }
ret = s3c2410wdt_cpufreq_register(wdt);
if (ret < 0) {