projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2710073
)
drm/amdgpu: add missing dpm check for KV dpm late init
author
Alex Deucher
<alexander.deucher@amd.com>
Mon, 19 Oct 2015 19:54:21 +0000
(15:54 -0400)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 19 Oct 2015 19:54:21 +0000
(15:54 -0400)
Skip dpm late init if dpm is disabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
index
9745ed3
..
7e9154c
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
@@
-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)