summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-05-08 13:14:03 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-10 21:56:39 +0200
commitd8e8b582b4e685a0e2a95ca0f4862582d465c649 (patch)
tree6cbab300aaa42eb81c92eb5e2ee42f19b9c638bd /drivers/gpu/drm/i915/intel_display.c
parent9ff8c9bac2d78634f34d9b6e43e04bf316a7f456 (diff)
downloadlwn-d8e8b582b4e685a0e2a95ca0f4862582d465c649.tar.gz
lwn-d8e8b582b4e685a0e2a95ca0f4862582d465c649.zip
drm/i915: hsw: replace !is_pch_edp() with port==PORT_A
On HSW the CPU side eDP is always on port-A, the PCH side eDP is always on port-D. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index b89072252b6c..157a68f48060 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5969,7 +5969,7 @@ static int haswell_crtc_mode_set(struct drm_crtc *crtc,
for_each_encoder_on_crtc(dev, crtc, encoder) {
switch (encoder->type) {
case INTEL_OUTPUT_EDP:
- if (!intel_encoder_is_pch_edp(&encoder->base))
+ if (enc_to_dig_port(&encoder->base)->port == PORT_A)
is_cpu_edp = true;
break;
}