Re: [PATCH v3 1/4] drm/vkms: init plane using drmm_universal_plane_alloc

2021-04-14 Thread Daniel Vetter
On Tue, Apr 13, 2021 at 04:50:08AM -0300, Melissa Wen wrote: > 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

[PATCH v3 1/4] drm/vkms: init plane using drmm_universal_plane_alloc

2021-04-13 Thread Melissa Wen
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 ---