forked from Minki/linux
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:
parent
86d8b6abbb
commit
81c69fc200
@ -1415,8 +1415,10 @@ static int fimc_probe(struct platform_device *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
|
fimc->work_queue = create_workqueue(dev_name(&fimc->pdev->dev));
|
||||||
if (!fimc->work_queue)
|
if (!fimc->work_queue) {
|
||||||
|
ret = -ENOMEM;
|
||||||
goto err_irq;
|
goto err_irq;
|
||||||
|
}
|
||||||
|
|
||||||
ret = fimc_register_m2m_device(fimc);
|
ret = fimc_register_m2m_device(fimc);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Loading…
Reference in New Issue
Block a user