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

drm/msm/dpu: drop dpu_hw_blk_destroy function

parent 88b0f5a5
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -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;
	}
}
+0 −1
Original line number Diff line number Diff line
@@ -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 */
+0 −2
Original line number Diff line number Diff line
@@ -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);
}
+0 −3
Original line number Diff line number Diff line
@@ -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);
}

+0 −2
Original line number Diff line number Diff line
@@ -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);
}
Loading