aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorPawel Osciak <p.osciak@samsung.com>2010-09-06 02:53:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-09-27 21:37:48 -0400
commit81c69fc200bfa2f3a8b2fed614d1c6670c4a7e14 (patch)
tree0d1c3ac949b6c5c74d946f26c377382066fed17e /drivers/media
parent86d8b6abbbc973a1dd7d3c8f9e3c3e06131703b2 (diff)
V4L/DVB: v4l: s5p-fimc: Fix return value on probe() failure
On failed create_workqueue() fimc_probe() was returning 0. Signed-off-by: Pawel Osciak <p.osciak@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/s5p-fimc/fimc-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c
index 1beb2263d18c..8cd1ef073926 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.c
+++ b/drivers/media/video/s5p-fimc/fimc-core.c
@@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev)
1415 } 1415 }
1416 1416
1417 fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev)); 1417 fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
1418 if (!fimc->work_queue) 1418 if (!fimc->work_queue) {
1419 ret = -ENOMEM;
1419 goto err_irq; 1420 goto err_irq;
1421 }
1420 1422
1421 ret = fimc_register_m2m_device(fimc); 1423 ret = fimc_register_m2m_device(fimc);
1422 if (ret) 1424 if (ret)