Commit 6f94be58 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Rob Clark

drm/msm/dpu: drop dpu_hw_blk_destroy function

The dpu_hw_blk_destroy() function is empty, so we can drop it now.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210515190909.1809050-3-dmitry.baryshkov@linaro.orgReviewed-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 88b0f5a5
...@@ -22,16 +22,3 @@ void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id) ...@@ -22,16 +22,3 @@ void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id)
hw_blk->type = type; hw_blk->type = type;
hw_blk->id = id; hw_blk->id = id;
} }
/**
* dpu_hw_blk_destroy - destroy hw block object.
* @hw_blk: pointer to hw block object
* return: none
*/
void dpu_hw_blk_destroy(struct dpu_hw_blk *hw_blk)
{
if (!hw_blk) {
pr_err("invalid parameters\n");
return;
}
}
...@@ -24,5 +24,4 @@ struct dpu_hw_blk { ...@@ -24,5 +24,4 @@ struct dpu_hw_blk {
}; };
void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id); void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id);
void dpu_hw_blk_destroy(struct dpu_hw_blk *hw_blk);
#endif /*_DPU_HW_BLK_H */ #endif /*_DPU_HW_BLK_H */
...@@ -620,7 +620,5 @@ struct dpu_hw_ctl *dpu_hw_ctl_init(enum dpu_ctl idx, ...@@ -620,7 +620,5 @@ struct dpu_hw_ctl *dpu_hw_ctl_init(enum dpu_ctl idx,
void dpu_hw_ctl_destroy(struct dpu_hw_ctl *ctx) void dpu_hw_ctl_destroy(struct dpu_hw_ctl *ctx)
{ {
if (ctx)
dpu_hw_blk_destroy(&ctx->base);
kfree(ctx); kfree(ctx);
} }
...@@ -117,9 +117,6 @@ struct dpu_hw_dspp *dpu_hw_dspp_init(enum dpu_dspp idx, ...@@ -117,9 +117,6 @@ struct dpu_hw_dspp *dpu_hw_dspp_init(enum dpu_dspp idx,
void dpu_hw_dspp_destroy(struct dpu_hw_dspp *dspp) void dpu_hw_dspp_destroy(struct dpu_hw_dspp *dspp)
{ {
if (dspp)
dpu_hw_blk_destroy(&dspp->base);
kfree(dspp); kfree(dspp);
} }
......
...@@ -332,8 +332,6 @@ struct dpu_hw_intf *dpu_hw_intf_init(enum dpu_intf idx, ...@@ -332,8 +332,6 @@ struct dpu_hw_intf *dpu_hw_intf_init(enum dpu_intf idx,
void dpu_hw_intf_destroy(struct dpu_hw_intf *intf) void dpu_hw_intf_destroy(struct dpu_hw_intf *intf)
{ {
if (intf)
dpu_hw_blk_destroy(&intf->base);
kfree(intf); kfree(intf);
} }
...@@ -189,7 +189,5 @@ struct dpu_hw_mixer *dpu_hw_lm_init(enum dpu_lm idx, ...@@ -189,7 +189,5 @@ struct dpu_hw_mixer *dpu_hw_lm_init(enum dpu_lm idx,
void dpu_hw_lm_destroy(struct dpu_hw_mixer *lm) void dpu_hw_lm_destroy(struct dpu_hw_mixer *lm)
{ {
if (lm)
dpu_hw_blk_destroy(&lm->base);
kfree(lm); kfree(lm);
} }
...@@ -86,7 +86,5 @@ struct dpu_hw_merge_3d *dpu_hw_merge_3d_init(enum dpu_merge_3d idx, ...@@ -86,7 +86,5 @@ struct dpu_hw_merge_3d *dpu_hw_merge_3d_init(enum dpu_merge_3d idx,
void dpu_hw_merge_3d_destroy(struct dpu_hw_merge_3d *hw) void dpu_hw_merge_3d_destroy(struct dpu_hw_merge_3d *hw)
{ {
if (hw)
dpu_hw_blk_destroy(&hw->base);
kfree(hw); kfree(hw);
} }
...@@ -289,7 +289,5 @@ struct dpu_hw_pingpong *dpu_hw_pingpong_init(enum dpu_pingpong idx, ...@@ -289,7 +289,5 @@ struct dpu_hw_pingpong *dpu_hw_pingpong_init(enum dpu_pingpong idx,
void dpu_hw_pingpong_destroy(struct dpu_hw_pingpong *pp) void dpu_hw_pingpong_destroy(struct dpu_hw_pingpong *pp)
{ {
if (pp)
dpu_hw_blk_destroy(&pp->base);
kfree(pp); kfree(pp);
} }
...@@ -740,8 +740,6 @@ struct dpu_hw_pipe *dpu_hw_sspp_init(enum dpu_sspp idx, ...@@ -740,8 +740,6 @@ struct dpu_hw_pipe *dpu_hw_sspp_init(enum dpu_sspp idx,
void dpu_hw_sspp_destroy(struct dpu_hw_pipe *ctx) void dpu_hw_sspp_destroy(struct dpu_hw_pipe *ctx)
{ {
if (ctx)
dpu_hw_blk_destroy(&ctx->base);
kfree(ctx); kfree(ctx);
} }
...@@ -329,8 +329,6 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx, ...@@ -329,8 +329,6 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx,
void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp) void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp)
{ {
if (mdp)
dpu_hw_blk_destroy(&mdp->base);
kfree(mdp); kfree(mdp);
} }
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