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

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

diff -u --recursive --new-file v2.4.13/linux/drivers/cdrom/aztcd.c linux/drivers/cdrom/aztcd.c
@@ -355,6 +355,7 @@
 int aztcd_init(void);
 
 static struct block_device_operations azt_fops = {
+	owner:THIS_MODULE,
 	open:aztcd_open,
 	release:aztcd_release,
 	ioctl:aztcd_ioctl,
@@ -1658,8 +1659,6 @@
 	if (aztPresent == 0)
 		return -ENXIO;	/* no hardware */
 
-	MOD_INC_USE_COUNT;
-
 	if (!azt_open_count && azt_state == AZT_S_IDLE) {
 		azt_invalidate_buffers();
 
@@ -1691,7 +1690,6 @@
 	return 0;
 
       err_out:
-	MOD_DEC_USE_COUNT;
 	return -EIO;
 }
 
@@ -1706,7 +1704,6 @@
 	printk("inode: %p, inode->i_rdev: %x    file: %p\n", inode,
 	       inode->i_rdev, file);
 #endif
-	MOD_DEC_USE_COUNT;
 	if (!--azt_open_count) {
 		azt_invalidate_buffers();
 		aztUnlockDoor();

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