upstream: [media] v4l: of: Support empty port nodes
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 10 Mar 2014 23:15:12 +0000 (20:15 -0300)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 05:26:26 +0000 (14:26 +0900)
commit1161fe8b1cc1dd76b60c39a3eaab2200ab0a9455
tree06cbd67a1c1aeda87e0ff4bfe2f0472fa9f597f5
parent7457a2ee093e636517215d589c407312f4d61f0a
upstream: [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