summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/sdi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-21 13:42:58 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-12-02 08:54:54 +0200
commit33ca237f80555cde41c17682991a2b58d2f14da5 (patch)
tree7d6bf28ff53dd00bb37cfa71471d5384837ebc4d /drivers/video/omap2/dss/sdi.c
parent2a4ee7ee685f3bf996461ed0d148857ce85a00e2 (diff)
downloadtalos-obmc-linux-33ca237f80555cde41c17682991a2b58d2f14da5.tar.gz
talos-obmc-linux-33ca237f80555cde41c17682991a2b58d2f14da5.zip
OMAPDSS: check the return value of dss_mgr_enable()
Now that dss_mgr_enable returns an error value, check it in all the places dss_mgr_enable is used, and bail out properly. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/sdi.c')
-rw-r--r--drivers/video/omap2/dss/sdi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c
index 02da8beb7304..8266ca0d666b 100644
--- a/drivers/video/omap2/dss/sdi.c
+++ b/drivers/video/omap2/dss/sdi.c
@@ -123,10 +123,14 @@ int omapdss_sdi_display_enable(struct omap_dss_device *dssdev)
goto err_sdi_enable;
mdelay(2);
- dss_mgr_enable(dssdev->manager);
+ r = dss_mgr_enable(dssdev->manager);
+ if (r)
+ goto err_mgr_enable;
return 0;
+err_mgr_enable:
+ dss_sdi_disable();
err_sdi_enable:
err_set_dispc_clock_div:
err_set_dss_clock_div:
OpenPOWER on IntegriCloud