From: Ben Dooks Date: Wed, 19 Apr 2006 22:02:56 +0000 (+0100) Subject: [WATCHDOG] s3c2410_wdt.c stop watchdog after boot X-Git-Tag: v2.6.17-rc5~94^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=655516c80ccb3ab2ba2d3063715889b00552a8b3;p=platform%2Fkernel%2Flinux-3.10.git [WATCHDOG] s3c2410_wdt.c stop watchdog after boot If the s3c2410 watchdog timer is not enabled by the driver at startup, ensure that it is stopped in-case the boot process has enabled it. Signed-off-by: Ben Dooks Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton --- diff --git a/drivers/char/watchdog/s3c2410_wdt.c b/drivers/char/watchdog/s3c2410_wdt.c index 9dc5473..1ea04e9 100644 --- a/drivers/char/watchdog/s3c2410_wdt.c +++ b/drivers/char/watchdog/s3c2410_wdt.c @@ -423,6 +423,12 @@ static int s3c2410wdt_probe(struct platform_device *pdev) if (tmr_atboot && started == 0) { printk(KERN_INFO PFX "Starting Watchdog Timer\n"); s3c2410wdt_start(); + } else if (!tmr_atboot) { + /* if we're not enabling the watchdog, then ensure it is + * disabled if it has been left running from the bootloader + * or other source */ + + s3c2410wdt_stop(); } return 0;