Merge ath-next from ath.git
[deliverable/linux.git] / drivers / gpu / drm / msm / hdmi / hdmi_bridge.c
index 1dd093e3451ca103bc04b766c1a99901ec925b70..92b69ae8caf9c41c9c6cb80249ed726faafde5f8 100644 (file)
@@ -100,7 +100,9 @@ static void hdmi_bridge_pre_enable(struct drm_bridge *bridge)
                hdmi_audio_update(hdmi);
        }
 
-       phy->funcs->powerup(phy, hdmi->pixclock);
+       if (phy)
+               phy->funcs->powerup(phy, hdmi->pixclock);
+
        hdmi_set_mode(hdmi, true);
 
        if (hdmi->hdcp_ctrl)
@@ -126,7 +128,9 @@ static void hdmi_bridge_post_disable(struct drm_bridge *bridge)
 
        DBG("power down");
        hdmi_set_mode(hdmi, false);
-       phy->funcs->powerdown(phy);
+
+       if (phy)
+               phy->funcs->powerdown(phy);
 
        if (hdmi->power_on) {
                power_off(bridge);
This page took 0.025265 seconds and 5 git commands to generate.