[PATCH 14/19] drm/mediatek: Use new atomic iterator macros
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Mon Oct 17 12:37:13 UTC 2016
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
index db61aa5f32ef..414e848d8cbf 100644
--- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c
+++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c
@@ -50,8 +50,8 @@ static void mtk_atomic_wait_for_fences(struct drm_atomic_state *state)
struct drm_plane_state *plane_state;
int i;
- for_each_plane_in_state(state, plane, plane_state, i)
- mtk_fb_wait(plane->state->fb);
+ for_each_new_plane_in_state(state, plane, plane_state, i)
+ mtk_fb_wait(plane_state->fb);
}
static void mtk_atomic_complete(struct mtk_drm_private *private,
--
2.7.4
More information about the dri-devel
mailing list