[media] v4l: of: Support empty port nodes
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 10 Mar 2014 23:15:12 +0000 (20:15 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 12:38:49 +0000 (09:38 -0300)
commitb9db140c1e4644dc93900db476546e119dce5a28
treed26b89e3e7499ebcc2d42d822d3f88858865fc89
parentbb60fcb29baeead3128b3a8dd123578bead55c81
[media] v4l: of: Support empty port nodes

Empty port nodes are allowed but currently unsupported as the
v4l2_of_get_next_endpoint() function assumes that all port nodes have at
least an endpoint. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-of.c