drm/omap: dispc: disp_wb_setup to check return code
authorBenoit Parrot <bparrot@ti.com>
Wed, 22 Jun 2016 17:59:50 +0000 (12:59 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commitb5d025eff5206300be0f59bfe10c5b9e1c895af4
tree5aee3349acd09906fbb3da760501c90e746133b6
parent249e3da9b087f7691efbf1fd6691da69a4c1857d
drm/omap: dispc: disp_wb_setup to check return code

When dispc_wb_setup() calls dispc_ovl_setup_common() it does not
check for failure but instead keeps on partially setting up WB.
This causes the WB H/W to be partially initialized and yield
unexpected behavior.

Make sure return code is successful before proceeding.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/dss/dispc.c