aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_dac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_dac.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_dac.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_dac.c b/drivers/gpu/drm/nouveau/nv50_dac.c
index a0f2bebf49e3..55c56330be6d 100644
--- a/drivers/gpu/drm/nouveau/nv50_dac.c
+++ b/drivers/gpu/drm/nouveau/nv50_dac.c
@@ -190,11 +190,8 @@ nv50_dac_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
190 } 190 }
191 191
192 if (connector->scaling_mode != DRM_MODE_SCALE_NONE && 192 if (connector->scaling_mode != DRM_MODE_SCALE_NONE &&
193 connector->native_mode) { 193 connector->native_mode)
194 int id = adjusted_mode->base.id; 194 drm_mode_copy(adjusted_mode, connector->native_mode);
195 *adjusted_mode = *connector->native_mode;
196 adjusted_mode->base.id = id;
197 }
198 195
199 return true; 196 return true;
200} 197}