Skip to contentSkip to conversation

fix tm6010 compile error

linux-dvb Jan Paesmans 1 participant 1 message Apr 18, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello,

Seems there is a problem compiling mchehab's tree of tm6010 against linux kernel 2.6.24.3
It appears to be an argument missing in dvb_register_adapter. Added -1 as the requested number and added error checking code. Just a quick and dirty fix, but now at least it compiles.

Regards,

Jan

linux/drivers/media/video/tm6000/tm6000-dvb.c +7 -1
@@ -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) {

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb