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>
This commit is contained in:
parent
2a4ee7ee68
commit
33ca237f80
5 changed files with 50 additions and 7 deletions
|
@ -387,9 +387,16 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
|
|||
|
||||
hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 1);
|
||||
|
||||
dss_mgr_enable(dssdev->manager);
|
||||
r = dss_mgr_enable(dssdev->manager);
|
||||
if (r)
|
||||
goto err_mgr_enable;
|
||||
|
||||
return 0;
|
||||
|
||||
err_mgr_enable:
|
||||
hdmi.ip_data.ops->video_enable(&hdmi.ip_data, 0);
|
||||
hdmi.ip_data.ops->phy_disable(&hdmi.ip_data);
|
||||
hdmi.ip_data.ops->pll_disable(&hdmi.ip_data);
|
||||
err:
|
||||
hdmi_runtime_put();
|
||||
return -EIO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue