aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/kv_dpm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/kv_dpm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
index 6b6476dae970..8785ca570729 100644
--- a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
+++ b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
@@ -3079,6 +3079,9 @@ static int kv_dpm_hw_init(void *handle)
3079 int ret; 3079 int ret;
3080 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 3080 struct amdgpu_device *adev = (struct amdgpu_device *)handle;
3081 3081
3082 if (!amdgpu_dpm)
3083 return 0;
3084
3082 mutex_lock(&adev->pm.mutex); 3085 mutex_lock(&adev->pm.mutex);
3083 kv_dpm_setup_asic(adev); 3086 kv_dpm_setup_asic(adev);
3084 ret = kv_dpm_enable(adev); 3087 ret = kv_dpm_enable(adev);