drm/virtio: plane: use drm managed resources
authorDanilo Krummrich <dakr@redhat.com>
Thu, 14 Jul 2022 13:00:27 +0000 (15:00 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jul 2022 12:40:58 +0000 (14:40 +0200)
commit7847628862a808ff3802df96f54e5eab3ff448b6
tree09dea324e536be53936d8693c5ef4030e7553c2b
parent4c703f5d6f776eaa6a98611c9b5dfe800fbeb0c8
drm/virtio: plane: use drm managed resources

Use drm managed resource allocation (drmm_universal_plane_alloc()) in
order to cleanup/simplify drm plane .destroy callback.

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