drm/msm/mdp4: use drmm-managed allocation for mdp4_plane
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 8 Jul 2023 01:04:06 +0000 (04:04 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 23 Apr 2024 10:01:24 +0000 (13:01 +0300)
commit104e548a7c97da24224b375632fca0fc8b64c0db
tree67b084caf32c5bfcb0c96b6839f5aeacb83acef4
parentac8aabeeaced238a4f2404ec3e1261a652f2d6ce
drm/msm/mdp4: use drmm-managed allocation for mdp4_plane

Change struct mdp4_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/546181/
Link: https://lore.kernel.org/r/20230708010407.3871346-17-dmitry.baryshkov@linaro.org
drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c