diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-11-21 06:42:58 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-12-02 01:54:54 -0500 |
commit | 33ca237f80555cde41c17682991a2b58d2f14da5 (patch) | |
tree | 7d6bf28ff53dd00bb37cfa71471d5384837ebc4d /drivers/video/omap2/dss/hdmi.c | |
parent | 2a4ee7ee685f3bf996461ed0d148857ce85a00e2 (diff) |
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/hdmi.c')
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index e245a2bbba9d..b064762b6994 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -387,9 +387,16 @@ static int hdmi_power_on(struct omap_dss_device *dssdev) | |||
387 | 387 | ||
388 | hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 1); | 388 | hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 1); |
389 | 389 | ||
390 | dss_mgr_enable(dssdev->manager); | 390 | r = dss_mgr_enable(dssdev->manager); |
391 | if (r) | ||
392 | goto err_mgr_enable; | ||
391 | 393 | ||
392 | return 0; | 394 | return 0; |
395 | |||
396 | err_mgr_enable: | ||
397 | hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 0); | ||
398 | hdmi.ip_data.ops->phy_disable(&hdmi.ip_data); | ||
399 | hdmi.ip_data.ops->pll_disable(&hdmi.ip_data); | ||
393 | err: | 400 | err: |
394 | hdmi_runtime_put(); | 401 | hdmi_runtime_put(); |
395 | return -EIO; | 402 | return -EIO; |