drm/amdgpu/powerplay/psm: return an error in power state init
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Dec 2020 13:57:02 +0000 (08:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:37:16 +0000 (17:37 -0500)
commit902bc65de0b3d72c481b45cbac3e97ab8cb399c2
tree2140df39d4b455761732e445a49e3915cadf6673
parent9805e1adab1198a52db035901f872019ffdacc68
drm/amdgpu/powerplay/psm: return an error in power state init

Rather than just silently dropping it.  Also fixes a set but
unused variable warning.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c