Skip to content

Commit 3d5199a

Browse files
committed
drm/msm/dpu: drop dpu_core_perf_destroy()
This function does nothing, just clears one struct field. Drop it now. Acked-by: Konrad Dybcio <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/550210/ Link: https://lore.kernel.org/r/[email protected]
1 parent 4161ec7 commit 3d5199a

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -481,16 +481,6 @@ int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent)
481481
}
482482
#endif
483483

484-
void dpu_core_perf_destroy(struct dpu_core_perf *perf)
485-
{
486-
if (!perf) {
487-
DPU_ERROR("invalid parameters\n");
488-
return;
489-
}
490-
491-
perf->max_core_clk_rate = 0;
492-
}
493-
494484
int dpu_core_perf_init(struct dpu_core_perf *perf,
495485
const struct dpu_perf_cfg *perf_cfg,
496486
unsigned long max_core_clk_rate)

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ int dpu_core_perf_crtc_update(struct drm_crtc *crtc,
7878
*/
7979
void dpu_core_perf_crtc_release_bw(struct drm_crtc *crtc);
8080

81-
/**
82-
* dpu_core_perf_destroy - destroy the given core performance context
83-
* @perf: Pointer to core performance context
84-
*/
85-
void dpu_core_perf_destroy(struct dpu_core_perf *perf);
86-
8781
/**
8882
* dpu_core_perf_init - initialize the given core performance context
8983
* @perf: Pointer to core performance context

drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,6 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
12261226
return 0;
12271227

12281228
drm_obj_init_err:
1229-
dpu_core_perf_destroy(&dpu_kms->perf);
12301229
hw_intr_init_err:
12311230
perf_err:
12321231
power_error:

0 commit comments

Comments
 (0)