diff options
Diffstat (limited to 'drivers/char/amigamouse.c')
-rw-r--r-- | drivers/char/amigamouse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/amigamouse.c b/drivers/char/amigamouse.c index a3cbd737e..e62ea5753 100644 --- a/drivers/char/amigamouse.c +++ b/drivers/char/amigamouse.c @@ -159,10 +159,10 @@ static void mouse_interrupt(int irq, void *dummy, struct pt_regs *fp) AMI_MSE_INT_ON(); } -static int fasync_mouse(struct file *filp, int on) +static int fasync_mouse(int fd, struct file *filp, int on) { int retval; - retval = fasync_helper(filp, on, &mouse.fasyncptr); + retval = fasync_helper(fd, filp, on, &mouse.fasyncptr); if (retval < 0) return retval; return 0; @@ -174,7 +174,7 @@ static int fasync_mouse(struct file *filp, int on) static int release_mouse(struct inode * inode, struct file * file) { - fasync_mouse(file, 0); + fasync_mouse(-1, file, 0); if (--mouse.active) return 0; free_irq(IRQ_AMIGA_VERTB, mouse_interrupt); @@ -299,6 +299,7 @@ struct file_operations amiga_mouse_fops = { NULL, /* mouse_ioctl */ NULL, /* mouse_mmap */ open_mouse, + NULL, /* flush */ release_mouse, NULL, fasync_mouse, |