Skip to content

Commit

Permalink
drm/amdgpu: add missing dpm check for KV dpm late init
Browse files Browse the repository at this point in the history
Skip dpm late init if dpm is disabled.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Alex Deucher committed Oct 19, 2015
1 parent 2710073 commit 677c884
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/kv_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2997,6 +2997,9 @@ static int kv_dpm_late_init(void *handle)
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
int ret;

if (!amdgpu_dpm)
return 0;

/* init the sysfs and debugfs files late */
ret = amdgpu_pm_sysfs_init(adev);
if (ret)
Expand Down

0 comments on commit 677c884

Please sign in to comment.