diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-17 05:32:10 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-17 05:32:10 +0000 |
commit | 80240748227416caa9fc54de34bc36936f58603e (patch) | |
tree | 42ee5848f546f30e6b895de5c060daaf1c1221e7 /sys/dev/pci | |
parent | 1557aa306de74b0c0c916d82f1874a797d8e7aa2 (diff) |
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
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/amd/pm/amdgpu_pm.c | 3 |
1 files changed, 1 insertions, 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; |