All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Paesmans <jan.paesmans@gmail.com>
To: linux-dvb@linuxtv.org
Subject: [linux-dvb] fix tm6010 compile error
Date: Fri, 18 Apr 2008 19:38:11 +0200	[thread overview]
Message-ID: <4808DC83.1050205@gmail.com> (raw)

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

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

[-- 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

                 reply	other threads:[~2008-04-18 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4808DC83.1050205@gmail.com \
    --to=jan.paesmans@gmail.com \
    --cc=linux-dvb@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.