drm: omapdrm: omap_plane_setup() cannot fail, use WARN
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 May 2015 08:03:15 +0000 (11:03 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Jun 2015 19:52:51 +0000 (22:52 +0300)
commitd9157dfd045f27f376edeab164203f1a68ba3ba4
tree56602c5bcc9c44954d15e61e96ade1a3268957eb
parent0dce4d75c3fc585387fbfc7ab2126118d86bf0f9
drm: omapdrm: omap_plane_setup() cannot fail, use WARN

With atomic modesetting, omap_plane_setup()'s return value is ignored as
the functions using it cannot fail. dispc_ovl_setup(), called by
omap_plane_setup(), can fail (but shouldn't).

Instead of returning an error from omap_plane_setup() which gets
ignored, return void and use WARN if dispc_ovl_setup() fails.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_plane.c