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:
parent
56e0349f38
commit
7265d50ea2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user