mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
watchdog: s3c2410_wdt: Check return value of clk_prepare_enable
clk_prepare_enable can fail. Check its return value. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
a94dd879e2
commit
01b6af9159
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue