diff options
author | Dave Airlie <airlied@redhat.com> | 2016-06-09 21:40:49 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-06-09 21:40:49 -0400 |
commit | 29ccf7590ec49647b3442b6b2c64c4406a931c80 (patch) | |
tree | c4019a45df01363bc4eb7a9b33edb1407375a0e8 | |
parent | fa6bcad781c165b8f3ec70f481dac48f1267da71 (diff) |
drm/amdgpu: fix warning with powerplay disabled.
This just fixes a warning when you disable powerplay.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 10b1be51318b..82256558e0f5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -218,9 +218,9 @@ static int amdgpu_pp_hw_fini(void *handle) | |||
218 | 218 | ||
219 | static void amdgpu_pp_late_fini(void *handle) | 219 | static void amdgpu_pp_late_fini(void *handle) |
220 | { | 220 | { |
221 | #ifdef CONFIG_DRM_AMD_POWERPLAY | ||
221 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 222 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
222 | 223 | ||
223 | #ifdef CONFIG_DRM_AMD_POWERPLAY | ||
224 | if (adev->pp_enabled) { | 224 | if (adev->pp_enabled) { |
225 | amdgpu_pm_sysfs_fini(adev); | 225 | amdgpu_pm_sysfs_fini(adev); |
226 | amd_powerplay_fini(adev->powerplay.pp_handle); | 226 | amd_powerplay_fini(adev->powerplay.pp_handle); |