projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6bcad
)
drm/amdgpu: fix warning with powerplay disabled.
author
Dave Airlie
<airlied@redhat.com>
Fri, 10 Jun 2016 01:40:49 +0000
(11:40 +1000)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
index 10b1be51318be2fb4b97ac37bbc5068cadf759c5..82256558e0f59db1b5a3d2af77e3e3d68d3ed2ef 100644
(file)
--- 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);