patch-2.4.5 linux/drivers/char/sbc60xxwdt.c
Next file: linux/drivers/char/serial.c
Previous file: linux/drivers/char/riscom8.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Tue May 22 10:23:16 2001
- Orig file:
v2.4.4/linux/drivers/char/sbc60xxwdt.c
- Orig date:
Fri Feb 9 11:30:22 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/char/sbc60xxwdt.c linux/drivers/char/sbc60xxwdt.c
@@ -16,6 +16,7 @@
*
* 12/4 - 2000 [Initial revision]
* 25/4 - 2000 Added /dev/watchdog support
+ * 09/5 - 2001 [smj@oro.net] fixed fop_write to "return 1" on success
*
*
* Theory of operation:
@@ -178,6 +179,7 @@
/* Well, anyhow someone wrote to us, we should return that favour */
next_heartbeat = jiffies + WDT_HEARTBEAT;
+ return 1;
}
return 0;
}
@@ -241,7 +243,7 @@
switch(cmd)
{
default:
- return -ENOIOCTLCMD;
+ return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user((struct watchdog_info *)arg, &ident, sizeof(ident))?-EFAULT:0;
case WDIOC_KEEPALIVE:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)