mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce()
Use PP_CAP macro. Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e03ff809f0
commit
9e59976675
1 changed files with 1 additions and 2 deletions
|
@ -1361,8 +1361,7 @@ int cz_dpm_update_vce_dpm(struct pp_hwmgr *hwmgr)
|
|||
|
||||
int cz_dpm_powerdown_vce(struct pp_hwmgr *hwmgr)
|
||||
{
|
||||
if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
|
||||
PHM_PlatformCaps_VCEPowerGating))
|
||||
if (PP_CAP(PHM_PlatformCaps_VCEPowerGating))
|
||||
return smum_send_msg_to_smc(hwmgr,
|
||||
PPSMC_MSG_VCEPowerOFF);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue