patch-2.1.31 linux/drivers/char/wdt.c

Next file: linux/drivers/isdn/isdn_common.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/char/wdt.c linux/drivers/char/wdt.c
@@ -275,7 +275,7 @@
 	}
 }
 
-static void wdt_release(struct inode *inode, struct file *file)
+static int wdt_release(struct inode *inode, struct file *file)
 {
 	if(MINOR(inode->i_rdev)==WATCHDOG_MINOR)
 	{
@@ -286,6 +286,7 @@
 		wdt_is_open=0;
 	}
 	MOD_DEC_USE_COUNT;
+	return 0;
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov