patch-2.4.0-test2 linux/drivers/char/qpmouse.c
Next file: linux/drivers/char/radio-aimslab.c
Previous file: linux/drivers/char/ppdev.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/qpmouse.c
- Orig date:
Thu Feb 10 17:11:08 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/char/qpmouse.c linux/drivers/char/qpmouse.c
@@ -133,8 +133,7 @@
head &= QP_BUF_SIZE-1;
}
queue->head = head;
- if (queue->fasync)
- kill_fasync(queue->fasync, SIGIO, POLL_IN);
+ kill_fasync(&queue->fasync, SIGIO, POLL_IN);
wake_up_interruptible(&queue->proc_list);
}
@@ -151,7 +150,6 @@
if (!poll_qp_status())
printk("Warning: Mouse device busy in release_qp()\n");
free_irq(QP_IRQ, NULL);
- MOD_DEC_USE_COUNT;
}
return 0;
}
@@ -196,7 +194,6 @@
}
outb_p(AUX_ENABLE_DEV, qp_data); /* Wake up mouse */
- MOD_INC_USE_COUNT;
return 0;
}
@@ -290,6 +287,7 @@
}
struct file_operations qp_fops = {
+ owner: THIS_MODULE,
read: read_qp,
write: write_qp,
poll: poll_qp,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)