drm/i915: Remove the double handling of 'flags from intel_mode_from_pipe_config()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Dec 2016 14:04:42 +0000 (16:04 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Jan 2017 15:34:48 +0000 (17:34 +0200)
We're trying to copy the flags from the adjusted mode to the
passed in mode twice. Once is enough.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161222140442.7204-2-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index f900e30e8d7a88454b69bf7c1d41dfb8d6d4aa53..0f4272f98648c57a9212a7b86b9cf30ba1dbf6c5 100644 (file)
@@ -8391,7 +8391,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode,
        mode->type = DRM_MODE_TYPE_DRIVER;
 
        mode->clock = pipe_config->base.adjusted_mode.crtc_clock;
-       mode->flags |= pipe_config->base.adjusted_mode.flags;
 
        mode->hsync = drm_mode_hsync(mode);
        mode->vrefresh = drm_mode_vrefresh(mode);