diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_legacy_encoders.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c index 341df86a253..5a13b3eeef1 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c | |||
@@ -221,16 +221,8 @@ static bool radeon_legacy_mode_fixup(struct drm_encoder *encoder, | |||
221 | drm_mode_set_crtcinfo(adjusted_mode, 0); | 221 | drm_mode_set_crtcinfo(adjusted_mode, 0); |
222 | 222 | ||
223 | /* get the native mode for LVDS */ | 223 | /* get the native mode for LVDS */ |
224 | if (radeon_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT)) { | 224 | if (radeon_encoder->active_device & (ATOM_DEVICE_LCD_SUPPORT)) |
225 | struct drm_display_mode *native_mode = &radeon_encoder->native_mode; | 225 | radeon_panel_mode_fixup(encoder, adjusted_mode); |
226 | int mode_id = adjusted_mode->base.id; | ||
227 | *adjusted_mode = *native_mode; | ||
228 | adjusted_mode->hdisplay = mode->hdisplay; | ||
229 | adjusted_mode->vdisplay = mode->vdisplay; | ||
230 | adjusted_mode->crtc_hdisplay = mode->hdisplay; | ||
231 | adjusted_mode->crtc_vdisplay = mode->vdisplay; | ||
232 | adjusted_mode->base.id = mode_id; | ||
233 | } | ||
234 | 226 | ||
235 | return true; | 227 | return true; |
236 | } | 228 | } |