summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-07-19 11:44:11 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-19 11:44:11 -0300
commit9e503f7f1dbe325edf739b32136d74774c6e8ae2 (patch)
tree2237f4f34d73c837a07d2534e8d3e001d0293682 /linux/drivers/media/video/cx88/cx88-video.c
parentdab4e454a8dfcbc59f1bd368e522627907866cfc (diff)
downloadmediapointer-dvb-s2-9e503f7f1dbe325edf739b32136d74774c6e8ae2.tar.gz
mediapointer-dvb-s2-9e503f7f1dbe325edf739b32136d74774c6e8ae2.tar.bz2
Conexant 2388x: check for kthread_run
From: Cyrill Gorcunov <gorcunov@gmail.com> The patch adds checking of kthread_run return code and issues a message if it fails. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 612c8393f..15273bbe6 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -2175,8 +2175,14 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
/* start tvaudio thread */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
- if (core->tuner_type != TUNER_ABSENT)
+ if (core->tuner_type != TUNER_ABSENT) {
core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio");
+ if (IS_ERR(core->kthread)) {
+ err = PTR_ERR(core->kthread);
+ printk(KERN_ERR "Failed to create cx88 audio thread, err=%d\n",
+ err);
+ }
+ }
#else
/*FIXME: Not sure if this will work */
if (core->tuner_type != TUNER_ABSENT)