summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-video.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-video.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c
index 27fe1af22..2e4840e56 100644
--- a/linux/drivers/media/video/cx88/cx88-video.c
+++ b/linux/drivers/media/video/cx88/cx88-video.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-video.c,v 1.95 2005/10/09 18:07:06 mchehab Exp $
+ * $Id: cx88-video.c,v 1.96 2005/10/10 22:07:19 mchehab Exp $
*
* device driver for Conexant 2388x based TV cards
* video4linux video interface
@@ -2219,8 +2219,16 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
up(&core->lock);
/* start tvaudio thread */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
if (core->tuner_type != TUNER_ABSENT)
core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio");
+#else
+ /*FIXME: Not sure if this will work */
+ if (core->tuner_type != TUNER_ABSENT)
+ kernel_thread (cx88_audio_thread, core, 0);
+
+ core->kthread = NULL;
+#endif
return 0;
fail_unreg: