.atomic_disable = vop2_crtc_atomic_disable,
 };
 
-static void vop2_crtc_reset(struct drm_crtc *crtc)
-{
-       struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(crtc->state);
-
-       if (crtc->state) {
-               __drm_atomic_helper_crtc_destroy_state(crtc->state);
-               kfree(vcstate);
-       }
-
-       vcstate = kzalloc(sizeof(*vcstate), GFP_KERNEL);
-       if (!vcstate)
-               return;
-
-       crtc->state = &vcstate->base;
-       crtc->state->crtc = crtc;
-}
-
 static struct drm_crtc_state *vop2_crtc_duplicate_state(struct drm_crtc *crtc)
 {
        struct rockchip_crtc_state *vcstate;
        kfree(vcstate);
 }
 
+static void vop2_crtc_reset(struct drm_crtc *crtc)
+{
+       struct rockchip_crtc_state *vcstate =
+               kzalloc(sizeof(*vcstate), GFP_KERNEL);
+
+       if (crtc->state)
+               vop2_crtc_destroy_state(crtc, crtc->state);
+
+       if (vcstate)
+               __drm_atomic_helper_crtc_reset(crtc, &vcstate->base);
+       else
+               __drm_atomic_helper_crtc_reset(crtc, NULL);
+}
+
 static const struct drm_crtc_funcs vop2_crtc_funcs = {
        .set_config = drm_atomic_helper_set_config,
        .page_flip = drm_atomic_helper_page_flip,