drm/atomic: Use the correct iterator macro in atomic_remove_fb
authorMaarten Lankhorst <[email protected]>
Wed, 12 Jul 2017 08:13:30 +0000 (10:13 +0200)
committerMaarten Lankhorst <[email protected]>
Thu, 13 Jul 2017 07:44:58 +0000 (09:44 +0200)
for_each_obj_in_state will be removed, so use the new state here.

Signed-off-by: Maarten Lankhorst <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: David Airlie <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_framebuffer.c

index fc8ef42203ec000c18c6206dcf141d21f04f79b1..607ef3a97c4259ce3c2a91d5df6d54fc3c41e2b8 100644 (file)
@@ -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)