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: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20210515190909.1809050-3-dmitry.baryshkov@linaro.org Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
88b0f5a56d
commit
6f94be582d
@ -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->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 {
|
||||
};
|
||||
|
||||
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 */
|
||||
|
@ -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)
|
||||
{
|
||||
if (ctx)
|
||||
dpu_hw_blk_destroy(&ctx->base);
|
||||
kfree(ctx);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
if (dspp)
|
||||
dpu_hw_blk_destroy(&dspp->base);
|
||||
|
||||
kfree(dspp);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
if (intf)
|
||||
dpu_hw_blk_destroy(&intf->base);
|
||||
kfree(intf);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
if (lm)
|
||||
dpu_hw_blk_destroy(&lm->base);
|
||||
kfree(lm);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
if (hw)
|
||||
dpu_hw_blk_destroy(&hw->base);
|
||||
kfree(hw);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
if (pp)
|
||||
dpu_hw_blk_destroy(&pp->base);
|
||||
kfree(pp);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
if (ctx)
|
||||
dpu_hw_blk_destroy(&ctx->base);
|
||||
kfree(ctx);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
if (mdp)
|
||||
dpu_hw_blk_destroy(&mdp->base);
|
||||
kfree(mdp);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user