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

Commit 7265d50e authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Deucher
Browse files

drm/amd/powerplay: fix amd_powerplay_reset()



We accidentally inverted an if statement and turned amd_powerplay_reset()
into a no-op.

Fixes: ae97988f ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 56e0349f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle)
	int ret;

	ret = pp_check(instance);
	if (!ret)
	if (ret)
		return ret;

	ret = pp_hw_fini(instance);