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

Commit 4573f0f2 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher
Browse files

drm/amd/powerplay: fix suspend error on DPM disabled



Don't fail if DPM is disabled.

Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d7b1eeb2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -251,7 +251,9 @@ static int pp_suspend(void *handle)

	ret = pp_check(pp_handle);

	if (ret != 0)
	if (ret == PP_DPM_DISABLED)
		return 0;
	else if (ret != 0)
		return ret;

	eventmgr = pp_handle->eventmgr;