patch-2.4.14 linux/drivers/cdrom/sjcd.c

Next file: linux/drivers/cdrom/sonycd535.c
Previous file: linux/drivers/cdrom/sbpcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/cdrom/sjcd.c linux/drivers/cdrom/sjcd.c
@@ -1551,8 +1551,6 @@
 	if (fp->f_mode & 2)
 		return (-EROFS);
 
-	MOD_INC_USE_COUNT;
-
 	if (sjcd_open_count == 0) {
 		int s, sjcd_open_tries;
 /* We don't know that, do we? */
@@ -1618,7 +1616,6 @@
 	return (0);
 
       err_out:
-	MOD_DEC_USE_COUNT;
 	return (-EIO);
 }
 
@@ -1632,9 +1629,6 @@
 #if defined( SJCD_TRACE )
 	printk("SJCD: release\n");
 #endif
-#ifdef MODULE
-	MOD_DEC_USE_COUNT;
-#endif
 	if (--sjcd_open_count == 0) {
 		sjcd_invalidate_buffers();
 		s = sjcd_tray_unlock();
@@ -1662,6 +1656,7 @@
  * A list of file operations allowed for this cdrom.
  */
 static struct block_device_operations sjcd_fops = {
+	owner:THIS_MODULE,
 	open:sjcd_open,
 	release:sjcd_release,
 	ioctl:sjcd_ioctl,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)