drm/msm/mdp5: use drmm-managed allocation for mdp5_plane
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 8 Jul 2023 01:04:00 +0000 (04:04 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 23 Apr 2024 09:58:45 +0000 (12:58 +0300)
commitac8aabeeaced238a4f2404ec3e1261a652f2d6ce
treef7663964bf7e0edbd9f7154e1f9a0cfeaf20f9e3
parent530f272053a5e72243a9cb07bb1296af6c346002
drm/msm/mdp5: use drmm-managed allocation for mdp5_plane

Change struct mdp5_plane allocation to use drmm_plane_alloc(). This
removes the need to perform any actions on plane destruction.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/546167/
Link: https://lore.kernel.org/r/20230708010407.3871346-11-dmitry.baryshkov@linaro.org
drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c