diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 632b18670098..361975cf45a9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |||
@@ -1154,7 +1154,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj, | |||
1154 | umode_t effective_mode = attr->mode; | 1154 | umode_t effective_mode = attr->mode; |
1155 | 1155 | ||
1156 | /* handle non-powerplay limitations */ | 1156 | /* handle non-powerplay limitations */ |
1157 | if (!adev->powerplay.cgs_device) { | 1157 | if (!adev->powerplay.pp_handle) { |
1158 | /* Skip fan attributes if fan is not present */ | 1158 | /* Skip fan attributes if fan is not present */ |
1159 | if (adev->pm.no_fan && | 1159 | if (adev->pm.no_fan && |
1160 | (attr == &sensor_dev_attr_pwm1.dev_attr.attr || | 1160 | (attr == &sensor_dev_attr_pwm1.dev_attr.attr || |