public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] compile error fix
@ 2008-04-21 19:19 Jan Paesmans
  0 siblings, 0 replies; only message in thread
From: Jan Paesmans @ 2008-04-21 19:19 UTC (permalink / raw)
  To: linux-dvb

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

Hi,

I fixed a compile problem I got in mchehab's tree for the tm6010.
Also added check on the return value of dvb_register_adapter.

Regards,

Jan

[-- Attachment #2: tm6010_compile_fix.patch --]
[-- Type: text/x-patch, Size: 599 bytes --]

diff --git a/linux/drivers/media/video/tm6000/tm6000-dvb.c b/linux/drivers/media/video/tm6000/tm6000-dvb.c
--- a/linux/drivers/media/video/tm6000/tm6000-dvb.c
+++ b/linux/drivers/media/video/tm6000/tm6000-dvb.c
@@ -229,7 +229,13 @@ int tm6000_dvb_register(struct tm6000_co
 	}
 
 	ret = dvb_register_adapter(&dvb->adapter, "Trident TVMaster 6000 DVB-T",
-							  THIS_MODULE, &dev->udev->dev);
+							  THIS_MODULE, &dev->udev->dev, -1);
+	if (ret < 0) {
+		printk(KERN_ERR
+			"tm6000: couldn't register adapter\n");
+		goto adapter_err;
+	}
+
 	dvb->adapter.priv = dev;
 
 	if (dvb->frontend) {

[-- Attachment #3: Type: text/plain, Size: 150 bytes --]

_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

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

only message in thread, other threads:[~2008-04-21 19:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 19:19 [linux-dvb] compile error fix Jan Paesmans

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