Commit 49e27d3c authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm/dpu: finalise global state object

Add calls to finalise global state object and corresponding lock.

Fixes: de3916c7 ("drm/msm/dpu: Track resources in global state")
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/570175/
Link: https://lore.kernel.org/r/20231203000532.1290480-3-dmitry.baryshkov@linaro.org
parent 7204df5e
...@@ -374,6 +374,12 @@ static int dpu_kms_global_obj_init(struct dpu_kms *dpu_kms) ...@@ -374,6 +374,12 @@ static int dpu_kms_global_obj_init(struct dpu_kms *dpu_kms)
return 0; return 0;
} }
static void dpu_kms_global_obj_fini(struct dpu_kms *dpu_kms)
{
drm_atomic_private_obj_fini(&dpu_kms->global_state);
drm_modeset_lock_fini(&dpu_kms->global_state_lock);
}
static int dpu_kms_parse_data_bus_icc_path(struct dpu_kms *dpu_kms) static int dpu_kms_parse_data_bus_icc_path(struct dpu_kms *dpu_kms)
{ {
struct icc_path *path0; struct icc_path *path0;
...@@ -804,6 +810,8 @@ static void _dpu_kms_hw_destroy(struct dpu_kms *dpu_kms) ...@@ -804,6 +810,8 @@ static void _dpu_kms_hw_destroy(struct dpu_kms *dpu_kms)
dpu_kms->hw_vbif[i] = NULL; dpu_kms->hw_vbif[i] = NULL;
} }
dpu_kms_global_obj_fini(dpu_kms);
dpu_kms->catalog = NULL; dpu_kms->catalog = NULL;
dpu_kms->hw_mdp = NULL; dpu_kms->hw_mdp = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment