Skip to content

Commit df2a5f7

Browse files
dmitrii-galantsevalexdeucher
authored andcommitted
drm/amd/pm: fix pp_*clk_od typo
Fix pp_dpm_sclk_od and pp_dpm_mclk_od typos. Those were defined as pp_*clk_od but used as pp_dpm_*clk_od instead. This change removes the _dpm part. Fixes: 8cfd6a0 ("drm/amd/pm: Hide irrelevant pm device attributes") Signed-off-by: Dmitrii Galantsev <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e177686 commit df2a5f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/pm/amdgpu_pm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,10 +2238,10 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
22382238
} else if (DEVICE_ATTR_IS(xgmi_plpd_policy)) {
22392239
if (amdgpu_dpm_get_xgmi_plpd_mode(adev, NULL) == XGMI_PLPD_NONE)
22402240
*states = ATTR_STATE_UNSUPPORTED;
2241-
} else if (DEVICE_ATTR_IS(pp_dpm_mclk_od)) {
2241+
} else if (DEVICE_ATTR_IS(pp_mclk_od)) {
22422242
if (amdgpu_dpm_get_mclk_od(adev) == -EOPNOTSUPP)
22432243
*states = ATTR_STATE_UNSUPPORTED;
2244-
} else if (DEVICE_ATTR_IS(pp_dpm_sclk_od)) {
2244+
} else if (DEVICE_ATTR_IS(pp_sclk_od)) {
22452245
if (amdgpu_dpm_get_sclk_od(adev) == -EOPNOTSUPP)
22462246
*states = ATTR_STATE_UNSUPPORTED;
22472247
} else if (DEVICE_ATTR_IS(apu_thermal_cap)) {

0 commit comments

Comments
 (0)