patch-2.1.124 linux/drivers/sbus/char/sunmouse.c

Next file: linux/drivers/sbus/char/sunserial.c
Previous file: linux/drivers/sbus/char/sunkbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.123/linux/drivers/sbus/char/sunmouse.c linux/drivers/sbus/char/sunmouse.c
@@ -329,11 +329,11 @@
 	return 0;
 }
 
-static int sun_mouse_fasync (struct file *filp, int on)
+static int sun_mouse_fasync (int fd, struct file *filp, int on)
 {
 	int retval;
 
-	retval = fasync_helper (filp, on, &sunmouse.fasync);
+	retval = fasync_helper (fd, filp, on, &sunmouse.fasync);
 	if (retval < 0)
 		return retval;
 	return 0;
@@ -342,7 +342,7 @@
 static int
 sun_mouse_close(struct inode *inode, struct file *file)
 {
-	sun_mouse_fasync (file, 0);
+	sun_mouse_fasync (-1, file, 0);
 	if (--sunmouse.active)
 		return 0;
 	sunmouse.ready = 0;

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