Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+3
+3
drivers/gpu/drm/amd/amdgpu/kv_dpm.c
··· 2997 2997 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 2998 2998 int ret; 2999 2999 3000 + if (!amdgpu_dpm) 3001 + return 0; 3002 + 3000 3003 /* init the sysfs and debugfs files late */ 3001 3004 ret = amdgpu_pm_sysfs_init(adev); 3002 3005 if (ret)