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

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
...@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle) ...@@ -1184,7 +1184,7 @@ int amd_powerplay_reset(void *handle)
int ret; int ret;
ret = pp_check(instance); ret = pp_check(instance);
if (!ret) if (ret)
return ret; return ret;
ret = pp_hw_fini(instance); ret = pp_hw_fini(instance);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment