diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-10-19 15:54:21 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-19 15:54:21 -0400 |
commit | 677c884ff6370add1360e2b9558285355ebe2b36 (patch) | |
tree | acc17d050863736c54cab28d6c98613a98dec13f /drivers/gpu | |
parent | 27100735adbcb872854674bed1d000825f9954ac (diff) | |
download | op-kernel-dev-677c884ff6370add1360e2b9558285355ebe2b36.zip op-kernel-dev-677c884ff6370add1360e2b9558285355ebe2b36.tar.gz |
drm/amdgpu: add missing dpm check for KV dpm late init
Skip dpm late init if dpm is disabled.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/kv_dpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/kv_dpm.c b/drivers/gpu/drm/amd/amdgpu/kv_dpm.c index 9745ed3..7e9154c 100644 --- 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) |