Commit 46b814d6 authored by Ben Dooks's avatar Ben Dooks Committed by Wim Van Sebroeck

[WATCHDOG] s3c2410_wdt announce initialisation

Announce the watchdog once the initialisation is
complete. This aides debugging problems where the
watchdog driver has been loaded and shows the
current state for the user.
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 47d17763
...@@ -348,6 +348,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param) ...@@ -348,6 +348,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param)
static int s3c2410wdt_probe(struct platform_device *pdev) static int s3c2410wdt_probe(struct platform_device *pdev)
{ {
struct resource *res; struct resource *res;
unsigned int wtcon;
int started = 0; int started = 0;
int ret; int ret;
int size; int size;
...@@ -433,6 +434,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev) ...@@ -433,6 +434,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
s3c2410wdt_stop(); 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; return 0;
err_clk: err_clk:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment