[Intel-gfx] [PATCH 3/6] drm/i915: ilk-ivb: replace is_pch_edp() with port==PORT_D

Imre Deak imre.deak at intel.com
Tue May 7 17:24:10 CEST 2013


On ILK-IVB the PCH side eDP is always on port-D.

Signed-off-by: Imre Deak <imre.deak at intel.com>
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 5b689b2..bdf07b7 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5067,7 +5067,7 @@ static void ironlake_init_pch_refclk(struct drm_device *dev)
 			break;
 		case INTEL_OUTPUT_EDP:
 			has_panel = true;
-			if (intel_encoder_is_pch_edp(&encoder->base))
+			if (enc_to_dig_port(&encoder->base)->port == PORT_D)
 				has_pch_edp = true;
 			else
 				has_cpu_edp = true;
-- 
1.7.10.4




More information about the Intel-gfx mailing list