aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 4c47b449b775..69886d93312b 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -2793,8 +2793,10 @@ bool intel_sdvo_init(struct drm_device *dev, uint32_t sdvo_reg, bool is_sdvob)
2793 /* Only enable the hotplug irq if we need it, to work around noisy 2793 /* Only enable the hotplug irq if we need it, to work around noisy
2794 * hotplug lines. 2794 * hotplug lines.
2795 */ 2795 */
2796 if (intel_sdvo->hotplug_active) 2796 if (intel_sdvo->hotplug_active) {
2797 intel_encoder->hpd_pin = HPD_SDVO_B ? HPD_SDVO_B : HPD_SDVO_C; 2797 intel_encoder->hpd_pin =
2798 intel_sdvo->is_sdvob ? HPD_SDVO_B : HPD_SDVO_C;
2799 }
2798 2800
2799 intel_encoder->compute_config = intel_sdvo_compute_config; 2801 intel_encoder->compute_config = intel_sdvo_compute_config;
2800 intel_encoder->disable = intel_disable_sdvo; 2802 intel_encoder->disable = intel_disable_sdvo;