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

Next file: linux/drivers/char/atixlmouse.c
Previous file: linux/drivers/char/apm_bios.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/char/atarimouse.c linux/drivers/char/atarimouse.c
@@ -62,15 +62,16 @@
 	return 0;
 }
 
-static void release_mouse(struct inode *inode, struct file *file)
+static int release_mouse(struct inode *inode, struct file *file)
 {
     fasync_mouse(inode, file, 0);
     if (--mouse.active)
-      return;
+      return 0;
     ikbd_mouse_disable();
 
     atari_mouse_interrupt_hook = NULL;
     MOD_DEC_USE_COUNT;
+    return 0;
 }
 
 static int open_mouse(struct inode *inode, struct file *file)

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