drm: Use state helper instead of the plane state pointer
[sfrench/cifs-2.6.git] / drivers / gpu / drm / atmel-hlcdc / atmel_hlcdc_plane.c
index 2c6d71faa268d2c6b691d079c4d34518621d37d5..a077d93c78d7b5e39a1b73b40a93452be5c8a94e 100644 (file)
@@ -733,7 +733,8 @@ static void atmel_hlcdc_plane_atomic_disable(struct drm_plane *p,
 static void atmel_hlcdc_plane_atomic_update(struct drm_plane *p,
                                            struct drm_atomic_state *state)
 {
-       struct drm_plane_state *new_s = p->state;
+       struct drm_plane_state *new_s = drm_atomic_get_new_plane_state(state,
+                                                                      p);
        struct atmel_hlcdc_plane *plane = drm_plane_to_atmel_hlcdc_plane(p);
        struct atmel_hlcdc_plane_state *hstate =
                        drm_plane_state_to_atmel_hlcdc_plane_state(new_s);