From: Maarten Lankhorst Date: Wed, 12 Jul 2017 08:13:30 +0000 (+0200) Subject: drm/atomic: Use the correct iterator macro in atomic_remove_fb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c3eb12324277eac3334ef04c9780b9e734f6f27;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/atomic: Use the correct iterator macro in atomic_remove_fb for_each_obj_in_state will be removed, so use the new state here. Signed-off-by: Maarten Lankhorst Cc: Daniel Vetter Cc: Jani Nikula Cc: Sean Paul Cc: David Airlie Link: http://patchwork.freedesktop.org/patch/msgid/20170712081344.25495-3-maarten.lankhorst@linux.intel.com Reviewed-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index fc8ef42203ec..607ef3a97c42 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -817,7 +817,7 @@ retry: plane->old_fb = plane->fb; } - for_each_connector_in_state(state, conn, conn_state, i) { + for_each_new_connector_in_state(state, conn, conn_state, i) { ret = drm_atomic_set_crtc_for_connector(conn_state, NULL); if (ret)