Skip to content

Commit 20403e8

Browse files
dja-dja-madWim Van Sebroeck
authored andcommitted
watchdog: fix initialisation printout in s3c2410_wdt
Looks like a typo creeped in, and driver prints s3c2410-wdt s3c2410-wdt: watchdog active, reset abled, irq abled instead of s3c2410-wdt s3c2410-wdt: watchdog active, reset enabled, irq enabled Also it may completely disinform about irq status, as it prints "irq enabled" when S3C2410_WTCON_INTEN is in fact 0. Fix it. Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru> Tested-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
1 parent f984910 commit 20403e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/watchdog/s3c2410_wdt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ static int __devinit s3c2410wdt_probe(struct platform_device *pdev)
401401

402402
dev_info(dev, "watchdog %sactive, reset %sabled, irq %sabled\n",
403403
(wtcon & S3C2410_WTCON_ENABLE) ? "" : "in",
404-
(wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
405-
(wtcon & S3C2410_WTCON_INTEN) ? "" : "en");
404+
(wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis",
405+
(wtcon & S3C2410_WTCON_INTEN) ? "en" : "dis");
406406

407407
return 0;
408408

0 commit comments

Comments
 (0)