hwmon: (applesmc) Correct sysfs fan error handling
authorHenrik Rydberg <rydberg@euromail.se>
Tue, 11 May 2010 07:17:47 +0000 (09:17 +0200)
committerJean Delvare <khali@linux-fr.org>
Tue, 11 May 2010 07:17:47 +0000 (09:17 +0200)
commit0559a538899d48e7d730affb9df2abb13a7d9008
tree99d6b4da24a0ffc4da57c78630150daf8ca897e9
parentd1bf8cf6b911001d50f2079c158cb5dd9782e187
hwmon: (applesmc) Correct sysfs fan error handling

The current code will not remove the sysfs files for fan numbers three
and up. Also, upon exit, fans one and two are removed regardless of
their existence.  This patch cleans up the sysfs error handling for
the fans.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/applesmc.c