revert android-tegra-2.6.36-honeycomb-mr1-9001adc to v2.6.36
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / i915 / intel_sdvo.c
index b60652bfd1a3ec1c606612c9b1fd7f7b5fe6e922..ee73e428a84a800dd8d70a1747457033f7e8da8e 100644 (file)
@@ -1498,12 +1498,10 @@ intel_sdvo_detect(struct drm_connector *connector, bool force)
        if (!intel_sdvo_write_cmd(intel_sdvo,
                             SDVO_CMD_GET_ATTACHED_DISPLAYS, NULL, 0))
                return connector_status_unknown;
-
-       /* add 30ms delay when the output type might be TV */
-       if (intel_sdvo->caps.output_flags &
-           (SDVO_OUTPUT_SVID0 | SDVO_OUTPUT_CVBS0))
+       if (intel_sdvo->is_tv) {
+               /* add 30ms delay when the output type is SDVO-TV */
                mdelay(30);
-
+       }
        if (!intel_sdvo_read_response(intel_sdvo, &response, 2))
                return connector_status_unknown;