drm/amd/powerplay: Tidy up cz_dpm_powerdown_vce()
authorTom St Denis <tom.stdenis@amd.com>
Mon, 16 Oct 2017 17:32:38 +0000 (13:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:15 +0000 (15:27 -0400)
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>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c

index acd06ad..c97e46e 100644 (file)
@@ -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;