drm/msm/dpu: drop dpu_hw_blk_destroy function
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 15 May 2021 19:09:07 +0000 (22:09 +0300)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:33:54 +0000 (07:33 -0700)
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>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_blk.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_merge3d.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c

index abad043f35f5c519c29bfb8615b0ed13f4d1e8a7..1f2b74b9eb657984a0dd58c6c19ebd2f8e160b0b 100644 (file)
@@ -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;
-       }
-}
index fb3be9a36a506d2d839385ff60feb62d8212230d..7768694b558a15536186814d3058cead9f8c18ab 100644 (file)
@@ -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 */
index 04a2c4b9a3576ffdc67f79d5a0074e8e60ed0436..441f66a4fb37edf973cc76a9b5abd2b136221253 100644 (file)
@@ -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);
 }
index d2f1045a736a02e248b2e23cd433a0387cffc09e..977b25968f341b8a301e83fecf190a71841bca23 100644 (file)
@@ -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);
 }
 
index 6ffe976017169b95c481ba330f152f1905e7113d..17224556d5a83253bec305b45a8e048a02348352 100644 (file)
@@ -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);
 }
 
index 554bb881de3a5b975a2330a9e7424df36407bb63..76f8b8f75b823b6c67ef71ccf8c4c3c76b2fa645 100644 (file)
@@ -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);
 }
index 863229dd0140161a74e7d3bbd6eb27233e2d5d80..406ba950a066c191019a5b51d343e7cfa04e302d 100644 (file)
@@ -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);
 }
index 334d5b28f533fcb15df2dae52b65244ccaab781c..92cd724263ce528cfb32f2f6be88a88c07c5cedc 100644 (file)
@@ -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);
 }
index ceb2488ea270ebe8bf2abf21d8130c5611fa3991..8734a47040aa520b18684940310c6a829e0193b4 100644 (file)
@@ -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);
 }
 
index 5d2c33ec1de7e9394cb1a5669da23cda6f82d875..dae77d9c2c74522775995f745dc41c49f70c4694 100644 (file)
@@ -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);
 }