[media] v4l: atmel-isi: Simplify error handling during DT parsing
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 1 Aug 2015 09:22:53 +0000 (06:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:36:32 +0000 (17:36 -0300)
commit375123976f71367c2e14921179149f52b2225746
treeae0ab2d143d3f9ce2ded784166310dbd0cb99476
parent9626d03e8dd4bb0c4def6e42c29c7f674d9f8e41
[media] v4l: atmel-isi: Simplify error handling during DT parsing

Put the endpoint DT node earlier to avoid the need for goto statements
to a cleanup code block in case of errors.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/soc_camera/atmel-isi.c