aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ddi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ddi.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 50cc26435595..31f9aa0c2b51 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -992,17 +992,13 @@ hsw_ddi_pll_select(struct intel_crtc *intel_crtc,
992{ 992{
993 struct intel_shared_dpll *pll; 993 struct intel_shared_dpll *pll;
994 994
995 if (intel_encoder->type == INTEL_OUTPUT_HDMI || 995 pll = intel_get_shared_dpll(intel_crtc, crtc_state,
996 intel_encoder->type == INTEL_OUTPUT_ANALOG) { 996 intel_encoder);
997 pll = intel_get_shared_dpll(intel_crtc, crtc_state, 997 if (!pll)
998 intel_encoder); 998 DRM_DEBUG_DRIVER("failed to find PLL for pipe %c\n",
999 if (!pll) 999 pipe_name(intel_crtc->pipe));
1000 DRM_DEBUG_DRIVER("failed to find PLL for pipe %c\n", 1000
1001 pipe_name(intel_crtc->pipe)); 1001 return pll;
1002 return pll;
1003 } else {
1004 return true;
1005 }
1006} 1002}
1007 1003
1008static bool 1004static bool