[lm-sensors] [PATCH 3/4] hwmon-f71882fg: Fix sysfs file removal

Hans de Goede hdegoede at redhat.com
Thu Oct 22 12:09:46 CEST 2009


There is a bug in the old sysfs file removal, as it uses fxxxx_in_temp_attr
to remove the in and temp sysfs attributes, but fxxxx_in_temp_attr has
temp#_alarm, where as f71858fg_in_temp_attr has temp#_max_alarm, so
the temp#_max_alarm attributes for the f71858fg never get removed.

This patch fixes this by doing the sysfs removal exactly the same way as
the creation instead of being (too) clever, this will also avoid similar
bugs in the future.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hwmon-f71882fg-fix-sysfs-file-removal.patch
URL: <http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20091022/6393e52a/attachment-0001.el>


More information about the lm-sensors mailing list