Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49f718c5 authored by Carlos Palminha's avatar Carlos Palminha Committed by Daniel Vetter
Browse files

drm: fixes crct set_mode when crtc mode_fixup is null.



This patch set nukes all the dummy crtc mode_fixup implementations.
(made on top of Daniel topic/drm-misc branch)

Signed-off-by: default avatarCarlos Palminha <palminha@synopsys.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/9d41105dee6632b4bb50e9555f2196ac249b9fce.1455630967.git.palminha@synopsys.com
parent 15fce29d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -343,10 +343,13 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
		}
	}

	if (!(ret = crtc_funcs->mode_fixup(crtc, mode, adjusted_mode))) {
	if (crtc_funcs->mode_fixup) {
		if (!(ret = crtc_funcs->mode_fixup(crtc, mode,
						adjusted_mode))) {
			DRM_DEBUG_KMS("CRTC fixup failed\n");
			goto done;
		}
	}
	DRM_DEBUG_KMS("[CRTC:%d:%s]\n", crtc->base.id, crtc->name);

	crtc->hwmode = *adjusted_mode;