Skip to content

Commit

Permalink
drm/msm: fix unbalanced pm_runtime_enable in adreno_gpu_{init, cleanup}
Browse files Browse the repository at this point in the history
adreno_gpu_init calls pm_runtime_enable, so adreno_gpu_cleanup needs to
call pm_runtime_disable.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
flto authored and robclark committed Jul 30, 2020
1 parent 5de5b6e commit 17e822f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/msm/adreno/adreno_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,11 +1021,14 @@ int adreno_gpu_init(struct drm_device *drm, struct platform_device *pdev,
void adreno_gpu_cleanup(struct adreno_gpu *adreno_gpu)
{
struct msm_gpu *gpu = &adreno_gpu->base;
struct msm_drm_private *priv = gpu->dev->dev_private;
unsigned int i;

for (i = 0; i < ARRAY_SIZE(adreno_gpu->info->fw); i++)
release_firmware(adreno_gpu->fw[i]);

pm_runtime_disable(&priv->gpu_pdev->dev);

icc_put(gpu->icc_path);
icc_put(gpu->ocmem_icc_path);

Expand Down

0 comments on commit 17e822f

Please sign in to comment.