From e1f5e57d05623242032f43882d3abfbdd99d19d2 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Wed, 17 Mar 2010 10:57:31 +0800 Subject: [PATCH] drm/i915: Use the load detection to check whether VGA is connected Signed-off-by: Zhao Yakui --- drivers/gpu/drm/i915/intel_crt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index fccf074..c666f63 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c @@ -392,6 +392,7 @@ static enum drm_connector_status intel_crt_detect(struct drm_connector *connecto int dpms_mode; enum drm_connector_status status; + /* if (IS_I9XX(dev) && !IS_I915G(dev) && !IS_I915GM(dev)) { if (intel_crt_detect_hotplug(connector)) return connector_status_connected; @@ -401,6 +402,7 @@ static enum drm_connector_status intel_crt_detect(struct drm_connector *connecto if (intel_crt_detect_ddc(connector)) return connector_status_connected; + */ /* for pre-945g platforms use load detect */ if (encoder->crtc && encoder->crtc->enabled) { -- 1.5.4.5