drm/amdgpu: fix warning with powerplay disabled.
authorDave Airlie <airlied@redhat.com>
Fri, 10 Jun 2016 01:40:49 +0000 (11:40 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 10 Jun 2016 01:40:49 +0000 (11:40 +1000)
This just fixes a warning when you disable powerplay.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

index 10b1be51318be2fb4b97ac37bbc5068cadf759c5..82256558e0f59db1b5a3d2af77e3e3d68d3ed2ef 100644 (file)
@@ -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);
This page took 0.030887 seconds and 5 git commands to generate.