patch-2.4.14 linux/drivers/block/acsi.c

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

diff -u --recursive --new-file v2.4.13/linux/drivers/block/acsi.c linux/drivers/block/acsi.c
@@ -1196,7 +1196,6 @@
 		acsi_prevent_removal(device, 1);
 	}
 	access_count[device]++;
-	MOD_INC_USE_COUNT;
 
 	if (filp && filp->f_mode) {
 		check_disk_change( inode->i_rdev );
@@ -1221,7 +1220,6 @@
 	int device = DEVICE_NR(MINOR(inode->i_rdev));
 	if (--access_count[device] == 0 && acsi_info[device].removable)
 		acsi_prevent_removal(device, 0);
-	MOD_DEC_USE_COUNT;
 	return( 0 );
 }
 
@@ -1657,6 +1655,7 @@
 #endif
 
 static struct block_device_operations acsi_fops = {
+	owner:			THIS_MODULE,
 	open:			acsi_open,
 	release:		acsi_release,
 	ioctl:			acsi_ioctl,

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