]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f71882fg) Fix sysfs file removal
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Dec 2009 19:36:01 +0000 (20:36 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 9 Dec 2009 19:36:01 +0000 (20:36 +0100)
commit2342b92555f709a9da38e3c4674fe79a21032810
tree08f28db4acb5a8c1c045d78777c08d28f5df6820
parent431e3db63ce0494f9b9fd4ba59a4125ec10c3d36
hwmon: (f71882fg) Fix sysfs file removal

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@redhat.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/f71882fg.c