From ecd3ea8dd7091a69e7f430308e454b802f0b91dc Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Feb 2022 05:32:09 +0000 Subject: [PATCH] drm/amd/pm: fix hwmon node of power1_label create issue From Yang Wang dcd1c46634697d200c7012d5047302355dce098f in linux 5.15.y/5.15.24 a8b1e8636a3252daa729762b2e3cc9015cc91a5c in mainline linux --- sys/dev/pci/drm/amd/pm/amdgpu_pm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/pm/amdgpu_pm.c b/sys/dev/pci/drm/amd/pm/amdgpu_pm.c index 50e7874c6e5..06a1eaee847 100644 --- a/sys/dev/pci/drm/amd/pm/amdgpu_pm.c +++ b/sys/dev/pci/drm/amd/pm/amdgpu_pm.c @@ -3447,8 +3447,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj, attr == &sensor_dev_attr_power2_cap_min.dev_attr.attr || attr == &sensor_dev_attr_power2_cap.dev_attr.attr || attr == &sensor_dev_attr_power2_cap_default.dev_attr.attr || - attr == &sensor_dev_attr_power2_label.dev_attr.attr || - attr == &sensor_dev_attr_power1_label.dev_attr.attr)) + attr == &sensor_dev_attr_power2_label.dev_attr.attr)) return 0; return effective_mode; -- 2.20.1