commit | 2f56dd8c77c8c24420d2791c39816e2cfb08bef5 | [log] [tgz] |
---|---|---|
author | Melissa Wen <melissa.srw@gmail.com> | Sat Apr 24 05:23:27 2021 -0300 |
committer | Melissa Wen <melissa.srw@gmail.com> | Thu Apr 29 18:44:43 2021 -0300 |
tree | aa6718590475f12a1cb33927a8c658c50bd7b24f | |
parent | 19d327a31a6965644b7c401aac4cf8a2e606d70f [diff] |
drm/vkms: init plane using drmm_universal_plane_alloc By using drmm_universal_plane_alloc instead of drm_universal_plane_init, we let the DRM infrastructure handles resource allocation and cleanup. We can also get rid of some code repetitions for plane cleanup, improving code maintainability in vkms. Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/3bbdabed0274d2d0917d1b829dd16f13d7b495f5.1619250933.git.melissa.srw@gmail.com