patch-2.4.14 linux/drivers/cdrom/sonycd535.c
Next file: linux/drivers/char/Config.in
Previous file: linux/drivers/cdrom/sjcd.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Thu Oct 25 13:58:35 2001
- Orig file:
v2.4.13/linux/drivers/cdrom/sonycd535.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/cdrom/sonycd535.c linux/drivers/cdrom/sonycd535.c
@@ -1399,13 +1399,11 @@
if (check_drive_status() != 0)
return -EIO;
sony_inuse = 1;
- MOD_INC_USE_COUNT;
if (spin_up_drive(status) != 0) {
printk(CDU535_MESSAGE_NAME " error 0x%.2x (cdu_open, spin up)\n",
status[0]);
sony_inuse = 0;
- MOD_DEC_USE_COUNT;
return -EIO;
}
sony_get_toc();
@@ -1413,7 +1411,6 @@
cmd_buff[0] = SONY535_SPIN_DOWN;
do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0);
sony_inuse = 0;
- MOD_DEC_USE_COUNT;
return -EIO;
}
if (inode) {
@@ -1442,7 +1439,6 @@
Byte status[2], cmd_no;
sony_inuse = 0;
- MOD_DEC_USE_COUNT;
if (0 < sony_usage) {
sony_usage--;
@@ -1463,9 +1459,9 @@
return 0;
}
-
static struct block_device_operations cdu_fops =
{
+ owner: THIS_MODULE,
open: cdu_open,
release: cdu_release,
ioctl: cdu_ioctl,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)