]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac2c2bdd7d35e7841640a8eef09f04e5d1cba2cd
tree99d6b4da24a0ffc4da57c78630150daf8ca897e9
parent0f656ca8761eef9767bd9ddd2bbe10f99610c9d5
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