OMAPDSS: fix dss_init_ports error handling
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 4 Jun 2015 10:06:37 +0000 (13:06 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 17 Jun 2015 10:44:44 +0000 (13:44 +0300)
commitf5a1a1f8e41e93584935d4ae62a84280dcdbe778
tree8dcb27c3ee11fa1ebbdc6d4e4b4a2add8b02c67d
parent7e328f5adcabb0b08e713f202b4a0fc388b2319e
OMAPDSS: fix dss_init_ports error handling

The return value of dss_init_ports() is not handled at all, causing
crashes later if the call failed.

This patch adds the error handling, and we also move the call to a
slightly earlier place to make bailing out easier.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/fbdev/omap2/dss/dss.c