aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/s3c2410_wdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/watchdog/s3c2410_wdt.c')
-rw-r--r--drivers/watchdog/s3c2410_wdt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c
index a0f8f771adec..7c6ccd071baf 100644
--- a/drivers/watchdog/s3c2410_wdt.c
+++ b/drivers/watchdog/s3c2410_wdt.c
@@ -525,7 +525,11 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
525 goto err; 525 goto err;
526 } 526 }
527 527
528 clk_prepare_enable(wdt->clock); 528 ret = clk_prepare_enable(wdt->clock);
529 if (ret < 0) {
530 dev_err(dev, "failed to enable clock\n");
531 return ret;
532 }
529 533
530 ret = s3c2410wdt_cpufreq_register(wdt); 534 ret = s3c2410wdt_cpufreq_register(wdt);
531 if (ret < 0) { 535 if (ret < 0) {