[PATCH] ALIM7101 watchdog

From: Steve Hill
Date: Mon Jan 26 2004 - 11:25:11 EST



Attached is a patch against 2.4.24 to fix the ALIM7101 watchdog driver
which wasn't properly taking notice of NOWAYOUT not being set.

- Steve Hill
Senior Software Developer Email: steve@xxxxxxxxxxxx
Navaho Technologies Ltd. Tel: +44-870-7034015

... Alcohol and calculus don't mix - Don't drink and derive! ...
diff -urN linux-2.4.24.vanilla/drivers/char/alim7101_wdt.c linux-2.4.24/drivers/char/alim7101_wdt.c
--- linux-2.4.24.vanilla/drivers/char/alim7101_wdt.c 2002-11-28 23:53:12.000000000 +0000
+++ linux-2.4.24/drivers/char/alim7101_wdt.c 2004-01-26 11:53:06.000000000 +0000
@@ -209,7 +209,7 @@

static int fop_close(struct inode * inode, struct file * file)
{
- if(wdt_expect_close)
+ if ((wdt_expect_close) || (! nowayout))
wdt_turnoff();
else {
printk(OUR_NAME ": device file closed unexpectedly. Will not stop the WDT!\n");