diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-10 22:07:19 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-10 22:07:19 +0000 |
commit | 7face9a229067fa73bcc6e157acfb3b12d226156 (patch) | |
tree | 7d4ace0335a9bb131c70e1d18144dcb9f66ad7a3 /linux/drivers/media/video/cx88/cx88-video.c | |
parent | f004ad6a64690b2ed1ae81738ec6383ebe5404a5 (diff) | |
download | mediapointer-dvb-s2-7face9a229067fa73bcc6e157acfb3b12d226156.tar.gz mediapointer-dvb-s2-7face9a229067fa73bcc6e157acfb3b12d226156.tar.bz2 |
- Some fixups for 2.4 kernel.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-video.c | 10 |
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: |