diff options
author | Dave Airlie <airlied@redhat.com> | 2016-06-10 11:40:49 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-06-10 11:40:49 +1000 |
commit | 29ccf7590ec49647b3442b6b2c64c4406a931c80 (patch) | |
tree | c4019a45df01363bc4eb7a9b33edb1407375a0e8 | |
parent | fa6bcad781c165b8f3ec70f481dac48f1267da71 (diff) | |
download | linux-29ccf7590ec49647b3442b6b2c64c4406a931c80.tar.gz linux-29ccf7590ec49647b3442b6b2c64c4406a931c80.tar.bz2 linux-29ccf7590ec49647b3442b6b2c64c4406a931c80.zip |
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) static void amdgpu_pp_late_fini(void *handle) { +#ifdef CONFIG_DRM_AMD_POWERPLAY struct amdgpu_device *adev = (struct amdgpu_device *)handle; -#ifdef CONFIG_DRM_AMD_POWERPLAY if (adev->pp_enabled) { amdgpu_pm_sysfs_fini(adev); amd_powerplay_fini(adev->powerplay.pp_handle); |