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>
This commit is contained in:
Pawel Osciak 2010-09-06 03:53:43 -03:00 committed by Mauro Carvalho Chehab
parent 86d8b6abbb
commit 81c69fc200

View File

@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev)
}
fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
if (!fimc->work_queue)
if (!fimc->work_queue) {
ret = -ENOMEM;
goto err_irq;
}
ret = fimc_register_m2m_device(fimc);
if (ret)