drm/amd/powerplay: fix amd_powerplay_reset()

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

Fixes: ae97988fc8 ("drm/amd/powerplay: tidy up ret checks in amd_powerplay.c (v3)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Dan Carpenter 2017-10-24 12:44:18 +03:00 committed by Alex Deucher
parent 56e0349f38
commit 7265d50ea2

View File

@ -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);