[media] v4l: of: Return an int in v4l2_of_parse_endpoint()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 17 May 2013 10:31:04 +0000 (07:31 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 18 Dec 2013 08:25:53 +0000 (06:25 -0200)
commit9ff889b612ae3c36a537b8f023dd0201412de87f
treeb248bbb6c7096ff6820ece07698aaeaf2d25af15
parent792e8eca55c8aebb369f7fdf4c7e3c01703cc8c4
[media] v4l: of: Return an int in v4l2_of_parse_endpoint()

When CONFIG_OF is not defined the v4l2_of_parse_endpoint() function is
defined as a stub that returns -ENOSYS. Make the real function return an
integer as well to be able to differentiate between the two cases.

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