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

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

diff -u --recursive --new-file v2.4.13/linux/drivers/cdrom/gscd.c linux/drivers/cdrom/gscd.c
@@ -164,6 +164,7 @@
 static struct timer_list gscd_timer;
 
 static struct block_device_operations gscd_fops = {
+	owner:THIS_MODULE,
 	open:gscd_open,
 	release:gscd_release,
 	ioctl:gscd_ioctl,
@@ -381,13 +382,10 @@
 	if (gscdPresent == 0)
 		return -ENXIO;	/* no hardware */
 
-	MOD_INC_USE_COUNT;
-
 	get_status();
 	st = disk_state & (ST_NO_DISK | ST_DOOR_OPEN);
 	if (st) {
 		printk("GSCD: no disk or door open\n");
-		MOD_DEC_USE_COUNT;
 		return -ENXIO;
 	}
 
@@ -412,7 +410,6 @@
 
 	gscd_bn = -1;
 
-	MOD_DEC_USE_COUNT;
 	return 0;
 }
 

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