projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b93d3c
)
drm/arm/malidp: crtc: use drmm_crtc_init_with_planes()
author
Danilo Krummrich
<dakr@redhat.com>
Wed, 26 Oct 2022 15:59:32 +0000
(17:59 +0200)
committer
Liviu Dudau
<liviu.dudau@arm.com>
Wed, 16 Nov 2022 10:33:43 +0000
(10:33 +0000)
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
drivers/gpu/drm/arm/malidp_crtc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/arm/malidp_crtc.c
b/drivers/gpu/drm/arm/malidp_crtc.c
index 34ad7e1cd2b858a505a2e96b6fef2c93d1e471b6..dc01c43f61930bfb61d324978bac14a15dfd0b92 100644
(file)
--- a/
drivers/gpu/drm/arm/malidp_crtc.c
+++ b/
drivers/gpu/drm/arm/malidp_crtc.c
@@
-514,7
+514,6
@@
static void malidp_crtc_disable_vblank(struct drm_crtc *crtc)
}
static const struct drm_crtc_funcs malidp_crtc_funcs = {
- .destroy = drm_crtc_cleanup,
.set_config = drm_atomic_helper_set_config,
.page_flip = drm_atomic_helper_page_flip,
.reset = malidp_crtc_reset,
@@
-548,8
+547,8
@@
int malidp_crtc_init(struct drm_device *drm)
return -EINVAL;
}
- ret = drm_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL,
- &malidp_crtc_funcs, NULL);
+ ret = drm
m
_crtc_init_with_planes(drm, &malidp->crtc, primary, NULL,
+
&malidp_crtc_funcs, NULL);
if (ret)
return ret;