mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] video/saa5249.c, video/tuner-3036.c get rid of MOD_INC/DEC
@ 2003-09-09 23:09 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2003-09-09 23:09 UTC (permalink / raw)
  To: Philip.Blundell, Frodo Looijaard, Philip Edelbrock, Greg KH; +Cc: linux-kernel

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.

diff -Nru a/drivers/media/video/saa5249.c b/drivers/media/video/saa5249.c
--- a/drivers/media/video/saa5249.c	Tue Sep  9 16:04:52 2003
+++ b/drivers/media/video/saa5249.c	Tue Sep  9 16:04:52 2003
@@ -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;
 }
 
diff -Nru a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c
--- a/drivers/media/video/tuner-3036.c	Tue Sep  9 16:04:52 2003
+++ b/drivers/media/video/tuner-3036.c	Tue Sep  9 16:04:52 2003
@@ -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;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-09 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-09 23:09 [PATCH] video/saa5249.c, video/tuner-3036.c get rid of MOD_INC/DEC Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®