patch-2.4.14 linux/drivers/cdrom/optcd.c
Next file: linux/drivers/cdrom/sbpcd.c
Previous file: linux/drivers/cdrom/mcdx.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Thu Oct 25 13:58:35 2001
- Orig file:
v2.4.13/linux/drivers/cdrom/optcd.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.13/linux/drivers/cdrom/optcd.c linux/drivers/cdrom/optcd.c
@@ -1871,8 +1871,6 @@
{
DEBUG((DEBUG_VFS, "starting opt_open"));
- MOD_INC_USE_COUNT;
-
if (!open_count && state == S_IDLE) {
int status;
@@ -1916,7 +1914,6 @@
return 0;
err_out:
- MOD_DEC_USE_COUNT;
return -EIO;
}
@@ -1944,7 +1941,6 @@
del_timer(&delay_timer);
del_timer(&req_timer);
}
- MOD_DEC_USE_COUNT;
return 0;
}
@@ -2005,6 +2001,7 @@
static struct block_device_operations opt_fops = {
+ owner: THIS_MODULE,
open: opt_open,
release: opt_release,
ioctl: opt_ioctl,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)