diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-06-19 22:45:37 +0000 |
commit | 6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch) | |
tree | 0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/char/adbmouse.c | |
parent | ecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff) |
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine
status unknown.
Diffstat (limited to 'drivers/char/adbmouse.c')
-rw-r--r-- | drivers/char/adbmouse.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/char/adbmouse.c b/drivers/char/adbmouse.c index a33693c14..a4108cf0e 100644 --- a/drivers/char/adbmouse.c +++ b/drivers/char/adbmouse.c @@ -132,20 +132,22 @@ static void adb_mouse_interrupt(unsigned char *buf, int nb) static int release_mouse(struct inode *inode, struct file *file) { adb_mouse_interrupt_hook = NULL; - MOD_DEC_USE_COUNT; + /* + * FIXME?: adb_mouse_interrupt_hook may still be executing + * on another CPU. + */ return 0; } static int open_mouse(struct inode *inode, struct file *file) { - MOD_INC_USE_COUNT; adb_mouse_interrupt_hook = adb_mouse_interrupt; return 0; } static struct busmouse adb_mouse = { - ADB_MOUSE_MINOR, "adbmouse", open_mouse, release_mouse, 7 + ADB_MOUSE_MINOR, "adbmouse", THIS_MODULE, open_mouse, release_mouse, 7 }; static int __init adb_mouse_init(void) |