drm/msm: fix unbalanced pm_runtime_enable in adreno_gpu_{init, cleanup}
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>
This commit is contained in:
parent
5de5b6ecf9
commit
17e822f759
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
void adreno_gpu_cleanup(struct adreno_gpu *adreno_gpu)
|
||||||
{
|
{
|
||||||
struct msm_gpu *gpu = &adreno_gpu->base;
|
struct msm_gpu *gpu = &adreno_gpu->base;
|
||||||
|
struct msm_drm_private *priv = gpu->dev->dev_private;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(adreno_gpu->info->fw); i++)
|
for (i = 0; i < ARRAY_SIZE(adreno_gpu->info->fw); i++)
|
||||||
release_firmware(adreno_gpu->fw[i]);
|
release_firmware(adreno_gpu->fw[i]);
|
||||||
|
|
||||||
|
pm_runtime_disable(&priv->gpu_pdev->dev);
|
||||||
|
|
||||||
icc_put(gpu->icc_path);
|
icc_put(gpu->icc_path);
|
||||||
icc_put(gpu->ocmem_icc_path);
|
icc_put(gpu->ocmem_icc_path);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue