diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-19 11:44:11 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-19 11:44:11 -0300 |
commit | 9e503f7f1dbe325edf739b32136d74774c6e8ae2 (patch) | |
tree | 2237f4f34d73c837a07d2534e8d3e001d0293682 /linux/drivers/media/video/cx88/cx88-video.c | |
parent | dab4e454a8dfcbc59f1bd368e522627907866cfc (diff) | |
download | mediapointer-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.c | 8 |
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) |