[media] pxa_camera: fix error return code in pxa_camera_probe()
commita2755e1178c33e69a8c0f7a9961d52ce4af8d365
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 02:21:45 +0000 (14 23:21 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 19 Sep 2016 17:17:50 +0000 (19 14:17 -0300)
tree9666cd9c9b693b0f6f0d7a1cd168a33c43166c97
parente4011b69ab329cc0d238d4dc530ab870c566c566
[media] pxa_camera: fix error return code in pxa_camera_probe()

Fix to return error code -ENODEV from dma_request_slave_channel_compat()
error handling case instead of 0, as done elsewhere in this function.

Also fix to release resources in v4l2_clk_register() error handling.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/pxa_camera.c