aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/watchdog/s3c2410_wdt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/char/watchdog/s3c2410_wdt.c b/drivers/char/watchdog/s3c2410_wdt.c
index 20fa29ca7404..7cc026353bcd 100644
--- a/drivers/char/watchdog/s3c2410_wdt.c
+++ b/drivers/char/watchdog/s3c2410_wdt.c
@@ -348,6 +348,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param)
348static int s3c2410wdt_probe(struct platform_device *pdev) 348static int s3c2410wdt_probe(struct platform_device *pdev)
349{ 349{
350 struct resource *res; 350 struct resource *res;
351 unsigned int wtcon;
351 int started = 0; 352 int started = 0;
352 int ret; 353 int ret;
353 int size; 354 int size;
@@ -433,6 +434,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
433 s3c2410wdt_stop(); 434 s3c2410wdt_stop();
434 } 435 }
435 436
437 /* print out a statement of readiness */
438
439 wtcon = readl(wdt_base + S3C2410_WTCON);
440
441 dev_info(&pdev->dev,
442 "watchdog %sactive, reset %sabled, irq %sabled\n",
443 (wtcon & S3C2410_WTCON_ENABLE) ? "" : "in",
444 (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
445 (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
446
436 return 0; 447 return 0;
437 448
438 err_clk: 449 err_clk: