Skip to contentSkip to conversation

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

PATCH New Philip Edelbrock 2 participants 2 messages May 19, 2005 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

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

-------- Original Message --------
From: - Tue Sep 9 16:08:05 2003
X-UIDL: 5ac8251150262f72
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <[email protected]>
Received: from mail.osdl.org (fw.osdl.org [65.172.181.6]) by
Ren.netroedge.com (8.12.8p1/8.12.8) with ESMTP id h89MwlIP032597 for <[email protected]>; Tue, 9 Sep 2003 15:58:47 -0700
Received: from dell_ss3.pdx.osdl.net (dell_ss3.pdx.osdl.net
[172.20.1.60]) by mail.osdl.org (8.11.6/8.11.6) with SMTP id h89N9ho19941; Tue, 9 Sep 2003 16:09:43 -0700
Date: Tue, 9 Sep 2003 16:09:26 -0700
From: Stephen Hemminger <[email protected]>
To: [email protected], Frodo Looijaard <[email protected]>, Philip
Edelbrock <[email protected]>, Greg KH <[email protected]>
Cc: [email protected]
Subject: [PATCH] video/saa5249.c, video/tuner-3036.c get rid of
MOD_INC/DEC
Message-Id: <[email protected]>
Organization: Open Source Development Lab
X-Mailer: Sylpheed version 0.9.4claws (GTK+ 1.2.10; i686-pc-linux-gnu)
X-Face: &@E+xe?c%:&e4D{>f1O<&U>2qwRREG5!}7R4;
D<"NO^UI2mJ[eEOA2*3>(Th.yP,VDPo9$ /~cw![cmj~~jWe?AHY7D1S+\}5brN0k*NE?pPh_'_d>6;XGG[\KDRViCfumZT3@[
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Quarentine-Loop: Processed
X-Spambayes-Classification: unsure; 0.42

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;
 }
 
#1 lore raw

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

Quoted 10 lines

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
(...)
diff -Nru a/drivers/media/video/tuner-3036.c

Thanks for the information. My current patch does not get rid of these, mostly because things do "work" (compile, run) with them still there.

I guess I'll have to incorporate them before we submit a patch to the LKML. And this also means that I should make sure I did not miss other similar ones (likely I did).

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/