Commit b47ff7e6 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Daniel Vetter
Browse files

drm/atmel-hlcdc: use helper to get crtc state

parent 2943ef32
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -558,7 +558,7 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p,
	if (!state->base.crtc || !fb)
	if (!state->base.crtc || !fb)
		return 0;
		return 0;


	crtc_state = s->state->crtc_states[drm_crtc_index(s->crtc)];
	crtc_state = drm_atomic_get_existing_crtc_state(s->state, s->crtc);
	mode = &crtc_state->adjusted_mode;
	mode = &crtc_state->adjusted_mode;


	state->src_x = s->src_x;
	state->src_x = s->src_x;