aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2007-07-19 10:44:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-20 16:35:55 -0400
commit32b78de7fee70a0bdb2081b23fc2b676ec566814 (patch)
tree31b947f0d19dcecd53768ce37e075c7612fc822b /drivers/media/video
parenta46c5fbc6912c4e34cb7ded314249b639dc244a6 (diff)
V4L/DVB (5871): Conexant 2388x: check for kthread_run
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 'drivers/media/video')
-rw-r--r--drivers/media/video/cx88/cx88-video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 98fa35421bdd..06b233a7b20b 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1881,8 +1881,14 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1881 mutex_unlock(&core->lock); 1881 mutex_unlock(&core->lock);
1882 1882
1883 /* start tvaudio thread */ 1883 /* start tvaudio thread */
1884 if (core->tuner_type != TUNER_ABSENT) 1884 if (core->tuner_type != TUNER_ABSENT) {
1885 core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio"); 1885 core->kthread = kthread_run(cx88_audio_thread, core, "cx88 tvaudio");
1886 if (IS_ERR(core->kthread)) {
1887 err = PTR_ERR(core->kthread);
1888 printk(KERN_ERR "Failed to create cx88 audio thread, err=%d\n",
1889 err);
1890 }
1891 }
1886 return 0; 1892 return 0;
1887 1893
1888fail_unreg: 1894fail_unreg: