OMAPDSS: HDMI: Disable PLL properly in case of error at power_on
authorRicardo Neri <ricardo.neri@ti.com>
Tue, 31 Jul 2012 00:12:02 +0000 (19:12 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 10 Aug 2012 12:48:24 +0000 (15:48 +0300)
Small patch to disable the PLL appropriately before runtime_put in case
an error occurs while enabling the PHY.

Signed-off-by: Ricardo Neri <ricardo.neri@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/hdmi.c

index 060216fdc5783da6675ebddb32f5ef3aa7cdfa70..a65dafaa0d723318855b4cd45c78d6647bbacdd7 100644 (file)
@@ -501,7 +501,7 @@ static int hdmi_power_on(struct omap_dss_device *dssdev)
        r = hdmi.ip_data.ops->phy_enable(&hdmi.ip_data);
        if (r) {
                DSSDBG("Failed to start PHY\n");
-               goto err;
+               goto err_phy_enable;
        }
 
        hdmi.ip_data.ops->video_configure(&hdmi.ip_data);
@@ -537,6 +537,7 @@ err_mgr_enable:
        hdmi.ip_data.ops->video_disable(&hdmi.ip_data);
 err_vid_enable:
        hdmi.ip_data.ops->phy_disable(&hdmi.ip_data);
+err_phy_enable:
        hdmi.ip_data.ops->pll_disable(&hdmi.ip_data);
 err:
        hdmi_runtime_put();