We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bf340 commit 8072e04Copy full SHA for 8072e04
drivers/gpu/drm/ast/ast_mode.c
@@ -918,8 +918,19 @@ static void ast_crtc_atomic_destroy_state(struct drm_crtc *crtc,
918
kfree(ast_state);
919
}
920
921
+static void ast_crtc_reset(struct drm_crtc *crtc)
922
+{
923
+ struct ast_crtc_state *state =
924
+ kzalloc(sizeof(*state), GFP_KERNEL);
925
+
926
+ if (crtc->state)
927
+ ast_crtc_atomic_destroy_state(crtc, crtc->state);
928
929
+ __drm_atomic_helper_crtc_reset(crtc, &state->base);
930
+}
931
932
static const struct drm_crtc_funcs ast_crtc_funcs = {
- .reset = drm_atomic_helper_crtc_reset,
933
+ .reset = ast_crtc_reset,
934
.set_config = drm_crtc_helper_set_config,
935
.gamma_set = drm_atomic_helper_legacy_gamma_set,
936
.destroy = ast_crtc_destroy,
0 commit comments