diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2020-11-30 18:06:49 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-12-02 17:37:15 -0500 |
commit | 54915feea3cab80f4b3bc8947d69484e3791292b (patch) | |
tree | 777a29a28436e7f3c66a90d59c965b40a0415dea /drivers/gpu/drm/amd/pm | |
parent | 3fabf0fdfff67e79286d859dd0b838d49a5b6d36 (diff) |
drm/amdgpu/powerplay/tonga: return an error if copying to smc fails
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm')
-rw-r--r-- | drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c index 4bfadb49521b..04b561f5d932 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/tonga_smumgr.c @@ -2545,7 +2545,7 @@ static int tonga_thermal_setup_fan_table(struct pp_hwmgr *hwmgr) (uint32_t)sizeof(fan_table), SMC_RAM_END); - return 0; + return res; } |