Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <dakr@redhat.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221026155934.125294-4-dakr@redhat.com

authored by

Danilo Krummrich and committed by
Liviu Dudau
905ff163 1b93d3cb

+2 -3
+2 -3
drivers/gpu/drm/arm/malidp_crtc.c
··· 514 514 } 515 515 516 516 static const struct drm_crtc_funcs malidp_crtc_funcs = { 517 - .destroy = drm_crtc_cleanup, 518 517 .set_config = drm_atomic_helper_set_config, 519 518 .page_flip = drm_atomic_helper_page_flip, 520 519 .reset = malidp_crtc_reset, ··· 547 548 return -EINVAL; 548 549 } 549 550 550 - ret = drm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL, 551 - &malidp_crtc_funcs, NULL); 551 + ret = drmm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL, 552 + &malidp_crtc_funcs, NULL); 552 553 if (ret) 553 554 return ret; 554 555