drm/amdgpu: Add missing pm_runtime_put_autosuspend
authorYongzhi Liu <lyz_cs@pku.edu.cn>
Tue, 18 Jan 2022 20:11:51 +0000 (15:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jan 2022 22:43:36 +0000 (17:43 -0500)
commit4bd8dd0d61f961e6c13cc118d4ebbdba57f8561f
tree026ef0e2b6fe0d0c302082bccdc5a333b75d4d7c
parent552b7cb0eed12c184b3bdfcc262e96a954a2bc86
drm/amdgpu: Add missing pm_runtime_put_autosuspend

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, thus a matching decrement is needed
on the error handling path to keep the counter balanced.

Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c