Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 677c884f authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: add missing dpm check for KV dpm late init



Skip dpm late init if dpm is disabled.

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 27100735
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)