mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amd/pm: fix the return value of pm message
0 should be right driver return value, 0x1 is the right firmware return value. So switch to 0 at last. Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Xiaojian Du <xiaojian.du@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
743538838c
commit
966737906c
1 changed files with 1 additions and 0 deletions
|
@ -152,6 +152,7 @@ int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
|
|||
if (read_arg)
|
||||
smu_cmn_read_arg(smu, read_arg);
|
||||
|
||||
ret = 0; /* 0 as driver return value */
|
||||
out:
|
||||
mutex_unlock(&smu->message_lock);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue