[PATCH 10/11] mv64x60_wdt: disable watchdog timer when driver is probed

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Wim Van Sebroeck <wim@...>, <linux-kernel@...>
Date: Tuesday, July 24, 2007 - 2:19 pm

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
---
 drivers/char/watchdog/mv64x60_wdt.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6-powerpc-wdt/drivers/char/watchdog/mv64x60_wdt.c
===================================================================
--- linux-2.6-powerpc-wdt.orig/drivers/char/watchdog/mv64x60_wdt.c	2007-07-20 19:33:30.000000000 +0000
+++ linux-2.6-powerpc-wdt/drivers/char/watchdog/mv64x60_wdt.c	2007-07-20 19:34:23.000000000 +0000
@@ -262,6 +262,8 @@ static int __devinit mv64x60_wdt_probe(s
 
 	mv64x60_wdt_set_timeout(timeout);
 
+	mv64x60_wdt_handler_disable();	/* in case timer was already running */
+
 	return misc_register(&mv64x60_wdt_miscdev);
 }
 

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 10/11] mv64x60_wdt: disable watchdog timer when drive..., Dale Farnsworth, (Tue Jul 24, 2:19 pm)
[PATCH 11/11] mv64x60_wdt_cleanup_low_level_wdt_code.patch, Dale Farnsworth, (Tue Jul 24, 2:20 pm)
[PATCH 05/11] mv64x60_wdt: Fix WDIOC_GETTIMEOUT return value, Dale Farnsworth, (Tue Jul 24, 2:14 pm)
[PATCH 03/11] mv64x60_wdt: Add arch/powerpc platform support, Dale Farnsworth, (Tue Jul 24, 2:12 pm)