patch-2.4.3 linux/drivers/media/video/zr36120.c

Next file: linux/drivers/net/3c503.c
Previous file: linux/drivers/media/video/vino.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/media/video/zr36120.c linux/drivers/media/video/zr36120.c
@@ -788,7 +788,6 @@
 	/* do the common part of all open's */
 	zoran_common_open(ztv, flags);
 
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 
@@ -820,7 +819,6 @@
 		kfree( ztv->overinfo.overlay );
 	ztv->overinfo.overlay = 0;
 
-	MOD_DEC_USE_COUNT;
 }
 
 /*
@@ -1482,6 +1480,7 @@
 
 static struct video_device zr36120_template=
 {
+	owner:		THIS_MODULE,
 	name:		"UNSET",
 	type:		VID_TYPE_TUNER|VID_TYPE_CAPTURE|VID_TYPE_OVERLAY,
 	hardware:	VID_HARDWARE_ZR36120,
@@ -1541,7 +1540,6 @@
 	/* start read-ahead */
 	zoran_cap(ztv, 1);
 
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 
@@ -1573,7 +1571,6 @@
 		item->memadr = 0;
 	}
 
-	MOD_DEC_USE_COUNT;
 }
 
 /*
@@ -1819,6 +1816,7 @@
 
 static struct video_device vbi_template=
 {
+	owner:		THIS_MODULE,
 	name:		"UNSET",
 	type:		VID_TYPE_CAPTURE|VID_TYPE_TELETEXT,
 	hardware:	VID_HARDWARE_ZR36120,

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