diff options
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 95e2181963d9..f5c621219113 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -115,7 +115,7 @@ static void imx_drm_atomic_commit_tail(struct drm_atomic_state *state) | |||
115 | { | 115 | { |
116 | struct drm_device *dev = state->dev; | 116 | struct drm_device *dev = state->dev; |
117 | struct drm_plane *plane; | 117 | struct drm_plane *plane; |
118 | struct drm_plane_state *old_plane_state; | 118 | struct drm_plane_state *old_plane_state, *new_plane_state; |
119 | bool plane_disabling = false; | 119 | bool plane_disabling = false; |
120 | int i; | 120 | int i; |
121 | 121 | ||
@@ -127,15 +127,15 @@ static void imx_drm_atomic_commit_tail(struct drm_atomic_state *state) | |||
127 | 127 | ||
128 | drm_atomic_helper_commit_modeset_enables(dev, state); | 128 | drm_atomic_helper_commit_modeset_enables(dev, state); |
129 | 129 | ||
130 | for_each_plane_in_state(state, plane, old_plane_state, i) { | 130 | for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { |
131 | if (drm_atomic_plane_disabling(old_plane_state, plane->state)) | 131 | if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) |
132 | plane_disabling = true; | 132 | plane_disabling = true; |
133 | } | 133 | } |
134 | 134 | ||
135 | if (plane_disabling) { | 135 | if (plane_disabling) { |
136 | drm_atomic_helper_wait_for_vblanks(dev, state); | 136 | drm_atomic_helper_wait_for_vblanks(dev, state); |
137 | 137 | ||
138 | for_each_plane_in_state(state, plane, old_plane_state, i) | 138 | for_each_old_plane_in_state(state, plane, old_plane_state, i) |
139 | ipu_plane_disable_deferred(plane); | 139 | ipu_plane_disable_deferred(plane); |
140 | 140 | ||
141 | } | 141 | } |