Skip to content

Commit 905ff16

Browse files
dakrdliviu
authored andcommitted
drm/arm/malidp: crtc: use drmm_crtc_init_with_planes()
Use drmm_crtc_init_with_planes() instead of drm_crtc_init_with_planes() to get rid of the explicit destroy hook in struct drm_plane_funcs. Signed-off-by: Danilo Krummrich <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 1b93d3c commit 905ff16

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/arm/malidp_crtc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ static void malidp_crtc_disable_vblank(struct drm_crtc *crtc)
514514
}
515515

516516
static const struct drm_crtc_funcs malidp_crtc_funcs = {
517-
.destroy = drm_crtc_cleanup,
518517
.set_config = drm_atomic_helper_set_config,
519518
.page_flip = drm_atomic_helper_page_flip,
520519
.reset = malidp_crtc_reset,
@@ -548,8 +547,8 @@ int malidp_crtc_init(struct drm_device *drm)
548547
return -EINVAL;
549548
}
550549

551-
ret = drm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL,
552-
&malidp_crtc_funcs, NULL);
550+
ret = drmm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL,
551+
&malidp_crtc_funcs, NULL);
553552
if (ret)
554553
return ret;
555554

0 commit comments

Comments
 (0)