[WATCHDOG] s3c2410_wdt announce initialisation
[deliverable/linux.git] / drivers / char / watchdog / s3c2410_wdt.c
index 20fa29ca7404655ade0c16d8d04bcef29cfd7d13..7cc026353bcd93a110d627ab674d1f86c40ac74f 100644 (file)
@@ -348,6 +348,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param)
 static int s3c2410wdt_probe(struct platform_device *pdev)
 {
        struct resource *res;
+       unsigned int wtcon;
        int started = 0;
        int ret;
        int size;
@@ -433,6 +434,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
                s3c2410wdt_stop();
        }
 
+       /* print out a statement of readiness */
+
+       wtcon = readl(wdt_base + S3C2410_WTCON);
+
+       dev_info(&pdev->dev,
+                "watchdog %sactive, reset %sabled, irq %sabled\n",
+                (wtcon & S3C2410_WTCON_ENABLE) ?  "" : "in",
+                (wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
+                (wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
+
        return 0;
 
  err_clk:
This page took 0.025529 seconds and 5 git commands to generate.