of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 1 Dec 2014 12:32:32 +0000 (13:32 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 23 Feb 2015 10:42:23 +0000 (11:42 +0100)
commitf033c0bcc53675562200680f4cb4a86710d9fbae
tree0fceddf110155d73a39194e945b1c9b473a7e37f
parentc517d838eb7d07bbe9507871fab3931deccff539
of: Decrement refcount of previous endpoint in of_graph_get_next_endpoint

Decrementing the reference count of the previous endpoint node allows to
use the of_graph_get_next_endpoint function in a for_each_... style macro.
All current users of this function that pass a non-NULL prev parameter
(that is, soc_camera and imx-drm) are changed to not decrement the passed
prev argument's refcount themselves.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/coresight/of_coresight.c
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/rcar-du/rcar_du_kms.c
drivers/media/platform/am437x/am437x-vpfe.c
drivers/media/platform/soc_camera/soc_camera.c
drivers/of/base.c
drivers/video/fbdev/omap2/dss/omapdss-boot-init.c