Skip to contentSkip to conversation

video/saa5249.c, video/tuner-3036.c get rid of MOD_INC/DEC

PATCH New Stephen Hemminger 1 participant 1 message Sep 9, 2003 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video/saa5249.c, video/tuner-3036.c get rid of MOD_INC/DEC

Get rid of MOD_INC/DEC since ref count comes from owner field on I2C for these drivers.

Not sure who is maintaining these, maybe no one because they haven't been purged of MOD stuff yet.

drivers/media/video/saa5249.c +0 -2
diff -Nru a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
@@ -214,7 +214,6 @@
 	}
 	t->client = client;
 	i2c_attach_client(client);
-	MOD_INC_USE_COUNT;
 	return 0;
 }
 
@@ -237,7 +236,6 @@
 	kfree(vd->priv);
 	kfree(vd);
 	kfree(client);
-	MOD_DEC_USE_COUNT;
 	return 0;
 }
 
drivers/media/video/tuner-3036.c +0 -2
diff -Nru a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c
@@ -135,7 +135,6 @@
 	printk("tuner: SAB3036 found, status %02x\n", tuner_getstatus(client));
 
         i2c_attach_client(client);
-	MOD_INC_USE_COUNT;
 
 	if (i2c_master_send(client, buffer, 2) != 2)
 		printk("tuner: i2c i/o error 1\n");
@@ -149,7 +148,6 @@
 static int 
 tuner_detach(struct i2c_client *c)
 {
-	MOD_DEC_USE_COUNT;
 	return 0;
 }