drm/vkms: Use drmm_crtc_init_with_planes()
authorMaíra Canal <mcanal@igalia.com>
Mon, 16 Jan 2023 20:58:00 +0000 (17:58 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Wed, 12 Apr 2023 13:38:33 +0000 (10:38 -0300)
commit99cc528ebe923d04767e9979665a0824727376ba
tree88585e926474fee72ca9e1804fb08146df17b48a
parentbfa8342c27c67e86a7b7022df06848709386e00d
drm/vkms: 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_crtc_funcs.

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230116205800.1266227-1-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_crtc.c