drm/msm: dpu: Remove _dpu_encoder_power_enable()
authorSean Paul <seanpaul@chromium.org>
Thu, 20 Sep 2018 14:58:15 +0000 (10:58 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 17:51:29 +0000 (12:51 -0500)
It's unused, remove it.

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

index bb69a5c9b471bfcf21bfe61606cf321526ac84cf..7b9620dc9c5422b36c615a4b3949346eb391d8e6 100644 (file)
@@ -210,39 +210,6 @@ struct dpu_encoder_virt {
 };
 
 #define to_dpu_encoder_virt(x) container_of(x, struct dpu_encoder_virt, base)
-static inline int _dpu_encoder_power_enable(struct dpu_encoder_virt *dpu_enc,
-                                                               bool enable)
-{
-       struct drm_encoder *drm_enc;
-       struct msm_drm_private *priv;
-       struct dpu_kms *dpu_kms;
-
-       if (!dpu_enc) {
-               DPU_ERROR("invalid dpu enc\n");
-               return -EINVAL;
-       }
-
-       drm_enc = &dpu_enc->base;
-       if (!drm_enc->dev || !drm_enc->dev->dev_private) {
-               DPU_ERROR("drm device invalid\n");
-               return -EINVAL;
-       }
-
-       priv = drm_enc->dev->dev_private;
-       if (!priv->kms) {
-               DPU_ERROR("invalid kms\n");
-               return -EINVAL;
-       }
-
-       dpu_kms = to_dpu_kms(priv->kms);
-
-       if (enable)
-               pm_runtime_get_sync(&dpu_kms->pdev->dev);
-       else
-               pm_runtime_put_sync(&dpu_kms->pdev->dev);
-
-       return 0;
-}
 
 void dpu_encoder_helper_report_irq_timeout(struct dpu_encoder_phys *phys_enc,
                enum dpu_intr_idx intr_idx)