mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-16 01:24:08 +08:00
drm/amd/pm: fix return value in aldebaran_set_mp1_state()
For default cases,we should return 0. Otherwise resume will abort because of the wrong return value. Signed-off-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c15e2739b8
commit
5051cb794a
@ -1856,10 +1856,8 @@ static int aldebaran_set_mp1_state(struct smu_context *smu,
|
||||
case PP_MP1_STATE_UNLOAD:
|
||||
return smu_cmn_set_mp1_state(smu, mp1_state);
|
||||
default:
|
||||
return -EINVAL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct pptable_funcs aldebaran_ppt_funcs = {
|
||||
|
Loading…
Reference in New Issue
Block a user