patch-2.4.0-test2 linux/drivers/char/pc110pad.c
Next file: linux/drivers/char/pc_keyb.c
Previous file: linux/drivers/char/nwflash.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Wed Jun 21 10:10:02 2000
- Orig file:
v2.4.0-test1/linux/drivers/char/pc110pad.c
- Orig date:
Thu May 11 15:30:06 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/pc110pad.c linux/drivers/char/pc110pad.c
@@ -83,8 +83,7 @@
static void wake_readers(void)
{
wake_up_interruptible(&queue);
- if(asyncptr)
- kill_fasync(asyncptr, SIGIO, POLL_IN);
+ kill_fasync(&asyncptr, SIGIO, POLL_IN);
}
@@ -588,7 +587,6 @@
if (--active)
return 0;
outb(0x30, current_params.io+2); /* switch off digitiser */
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -610,7 +608,6 @@
if (active++)
return 0;
- MOD_INC_USE_COUNT;
save_flags(flags);
cli();
@@ -772,6 +769,7 @@
static struct file_operations pad_fops = {
+ owner: THIS_MODULE,
read: read_pad,
write: write_pad,
poll: pad_poll,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)