public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pctv452e: hm.. tidy bogus code up
@ 2011-09-30 20:58 Igor M. Liplianin
  2011-10-03 12:30 ` André Weidemann
  2011-10-06  8:35 ` André Weidemann
  0 siblings, 2 replies; 5+ messages in thread
From: Igor M. Liplianin @ 2011-09-30 20:58 UTC (permalink / raw)
  To: Mauro Chehab
  Cc: linux-media, Michael Schimek, Hans Petter Selasky, Doychin Dokov,
	Steffen Barszus, Dominik Kuhlen

Currently, usb_register calls two times with cloned structures, but for 
different driver names. Let's remove it.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
---
 drivers/media/dvb/dvb-usb/pctv452e.c |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/pctv452e.c b/drivers/media/dvb/dvb-
usb/pctv452e.c
index 9a5c811..f9aec5c 100644
--- a/drivers/media/dvb/dvb-usb/pctv452e.c
+++ b/drivers/media/dvb/dvb-usb/pctv452e.c
@@ -1012,7 +1012,7 @@ static struct dvb_usb_device_properties 
tt_connect_s2_3600_properties = {
 
 	.i2c_algo = &pctv452e_i2c_algo,
 
-	.generic_bulk_ctrl_endpoint = 1, /* allow generice rw function*/
+	.generic_bulk_ctrl_endpoint = 1, /* allow generic rw function*/
 
 	.num_device_descs = 2,
 	.devices = {
@@ -1055,22 +1055,9 @@ static struct usb_driver pctv452e_usb_driver = {
 	.id_table   = pctv452e_usb_table,
 };
 
-static struct usb_driver tt_connects2_3600_usb_driver = {
-	.name       = "dvb-usb-tt-connect-s2-3600-01.fw",
-	.probe      = pctv452e_usb_probe,
-	.disconnect = pctv452e_usb_disconnect,
-	.id_table   = pctv452e_usb_table,
-};
-
 static int __init pctv452e_usb_init(void)
 {
 	int ret = usb_register(&pctv452e_usb_driver);
-
-	if (ret) {
-		err("%s: usb_register failed! Error %d", __FILE__, ret);
-		return ret;
-	}
-	ret = usb_register(&tt_connects2_3600_usb_driver);
 	if (ret)
 		err("%s: usb_register failed! Error %d", __FILE__, ret);
 
@@ -1080,7 +1067,6 @@ static int __init pctv452e_usb_init(void)
 static void __exit pctv452e_usb_exit(void)
 {
 	usb_deregister(&pctv452e_usb_driver);
-	usb_deregister(&tt_connects2_3600_usb_driver);
 }
 
 module_init(pctv452e_usb_init);
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] pctv452e: hm.. tidy bogus code up
  2011-09-30 20:58 [PATCH] pctv452e: hm.. tidy bogus code up Igor M. Liplianin
@ 2011-10-03 12:30 ` André Weidemann
  2011-10-03 12:36   ` André Weidemann
  2011-10-06  8:35 ` André Weidemann
  1 sibling, 1 reply; 5+ messages in thread
From: André Weidemann @ 2011-10-03 12:30 UTC (permalink / raw)
  To: Igor M. Liplianin
  Cc: Mauro Chehab, linux-media, Michael Schimek, Hans Petter Selasky,
	Doychin Dokov, Steffen Barszus, Dominik Kuhlen

Hi Igor,

On 30.09.2011 22:58, Igor M. Liplianin wrote:
> Currently, usb_register calls two times with cloned structures, but for
> different driver names. Let's remove it.
>
> Signed-off-by: Igor M. Liplianin<liplianin@me.by>

Well spotted... The cloned struct should have been removed a long time 
go. The final version of patch I submitted for the tt-connect S2-3600, 
did not contain it anymore: 
http://www.linuxtv.org/pipermail/linux-dvb/2008-March/024233.html

Acked-by: André Weideamm<Andre.Weidemann@web.de>

Regards
  André

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pctv452e: hm.. tidy bogus code up
  2011-10-03 12:30 ` André Weidemann
@ 2011-10-03 12:36   ` André Weidemann
  0 siblings, 0 replies; 5+ messages in thread
From: André Weidemann @ 2011-10-03 12:36 UTC (permalink / raw)
  To: Igor M. Liplianin
  Cc: Mauro Chehab, linux-media, Michael Schimek, Hans Petter Selasky,
	Doychin Dokov, Steffen Barszus, Dominik Kuhlen

On 03.10.2011 14:30, André Weidemann wrote:
> Hi Igor,
>
> On 30.09.2011 22:58, Igor M. Liplianin wrote:
>> Currently, usb_register calls two times with cloned structures, but for
>> different driver names. Let's remove it.
>>
>> Signed-off-by: Igor M. Liplianin<liplianin@me.by>
>
> Well spotted... The cloned struct should have been removed a long time
> go. The final version of patch I submitted for the tt-connect S2-3600,
> did not contain it anymore:
> http://www.linuxtv.org/pipermail/linux-dvb/2008-March/024233.html
>
> Acked-by: André Weideamm<Andre.Weidemann@web.de>

This should read:
Acked-by: André Weidemann<Andre.Weidemann@web.de>

;-)

Regards
  André

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pctv452e: hm.. tidy bogus code up
  2011-09-30 20:58 [PATCH] pctv452e: hm.. tidy bogus code up Igor M. Liplianin
  2011-10-03 12:30 ` André Weidemann
@ 2011-10-06  8:35 ` André Weidemann
  2011-10-06  9:15   ` Igor M. Liplianin
  1 sibling, 1 reply; 5+ messages in thread
From: André Weidemann @ 2011-10-06  8:35 UTC (permalink / raw)
  To: Igor M. Liplianin
  Cc: Mauro Chehab, linux-media, Michael Schimek, Hans Petter Selasky,
	Doychin Dokov, Steffen Barszus, Dominik Kuhlen

Hi Mauro,

On 30.09.2011 22:58, Igor M. Liplianin wrote:
> Currently, usb_register calls two times with cloned structures, but for
> different driver names. Let's remove it.

It looks like the comments and the patch under 
http://patchwork.linuxtv.org/patch/8042/ got mixed up.

Regards,
  André

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] pctv452e: hm.. tidy bogus code up
  2011-10-06  8:35 ` André Weidemann
@ 2011-10-06  9:15   ` Igor M. Liplianin
  0 siblings, 0 replies; 5+ messages in thread
From: Igor M. Liplianin @ 2011-10-06  9:15 UTC (permalink / raw)
  To: André Weidemann
  Cc: Mauro Chehab, linux-media, Michael Schimek, Hans Petter Selasky,
	Doychin Dokov, Steffen Barszus, Dominik Kuhlen

[-- Attachment #1: Type: Text/Plain, Size: 575 bytes --]

В сообщении от 6 октября 2011 11:35:51 автор André Weidemann написал:
> Hi Mauro,
> 
> On 30.09.2011 22:58, Igor M. Liplianin wrote:
> > Currently, usb_register calls two times with cloned structures, but for
> > different driver names. Let's remove it.
> 
> It looks like the comments and the patch under
> http://patchwork.linuxtv.org/patch/8042/ got mixed up.
> 
> Regards,
>   André
git format-patch generated original in attachement.
-- 
Igor M. Liplianin
Microsoft Windows Free Zone - Linux used for all Computing Tasks

[-- Attachment #2: 0001-pctv452e-hm.-tidy-bogus-code-up.txt --]
[-- Type: text/plain, Size: 1912 bytes --]

From 2e078ba46048c34b501174c5abc766a3bf812bb0 Mon Sep 17 00:00:00 2001
From: Igor M. Liplianin <liplianin@me.by>
Date: Fri, 30 Sep 2011 23:13:29 +0300
Subject: [PATCH] pctv452e: hm.. tidy bogus code up
To: <mchehab@infradead.org>, <linux-media@vger.kernel.org>

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
---
 drivers/media/dvb/dvb-usb/pctv452e.c |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/drivers/media/dvb/dvb-usb/pctv452e.c b/drivers/media/dvb/dvb-usb/pctv452e.c
index 9a5c811..f9aec5c 100644
--- a/drivers/media/dvb/dvb-usb/pctv452e.c
+++ b/drivers/media/dvb/dvb-usb/pctv452e.c
@@ -1012,7 +1012,7 @@ static struct dvb_usb_device_properties tt_connect_s2_3600_properties = {
 
 	.i2c_algo = &pctv452e_i2c_algo,
 
-	.generic_bulk_ctrl_endpoint = 1, /* allow generice rw function*/
+	.generic_bulk_ctrl_endpoint = 1, /* allow generic rw function*/
 
 	.num_device_descs = 2,
 	.devices = {
@@ -1055,22 +1055,9 @@ static struct usb_driver pctv452e_usb_driver = {
 	.id_table   = pctv452e_usb_table,
 };
 
-static struct usb_driver tt_connects2_3600_usb_driver = {
-	.name       = "dvb-usb-tt-connect-s2-3600-01.fw",
-	.probe      = pctv452e_usb_probe,
-	.disconnect = pctv452e_usb_disconnect,
-	.id_table   = pctv452e_usb_table,
-};
-
 static int __init pctv452e_usb_init(void)
 {
 	int ret = usb_register(&pctv452e_usb_driver);
-
-	if (ret) {
-		err("%s: usb_register failed! Error %d", __FILE__, ret);
-		return ret;
-	}
-	ret = usb_register(&tt_connects2_3600_usb_driver);
 	if (ret)
 		err("%s: usb_register failed! Error %d", __FILE__, ret);
 
@@ -1080,7 +1067,6 @@ static int __init pctv452e_usb_init(void)
 static void __exit pctv452e_usb_exit(void)
 {
 	usb_deregister(&pctv452e_usb_driver);
-	usb_deregister(&tt_connects2_3600_usb_driver);
 }
 
 module_init(pctv452e_usb_init);
-- 
1.7.5.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-06  9:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 20:58 [PATCH] pctv452e: hm.. tidy bogus code up Igor M. Liplianin
2011-10-03 12:30 ` André Weidemann
2011-10-03 12:36   ` André Weidemann
2011-10-06  8:35 ` André Weidemann
2011-10-06  9:15   ` Igor M. Liplianin

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