drm/virtio: kms: use drm managed resources
authorDanilo Krummrich <dakr@redhat.com>
Thu, 14 Jul 2022 13:00:28 +0000 (15:00 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jul 2022 12:40:59 +0000 (14:40 +0200)
commit90caf42527a40d09e0eed9fcbca08d757f4fd493
treef98707f03c65995f4db46c76cedd98246c34d220
parent7847628862a808ff3802df96f54e5eab3ff448b6
drm/virtio: kms: use drm managed resources

Allocate driver structures with drm managed resource allocators in order
to cleanup/simplify the drm driver .release callback.

Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220714130028.2127858-3-dakr@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_kms.c