]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pc87427) Move sysfs file removal to a separate function
authorJean Delvare <khali@linux-fr.org>
Sat, 14 Aug 2010 19:09:00 +0000 (21:09 +0200)
committerJean Delvare <khali@linux-fr.org>
Sat, 14 Aug 2010 19:09:00 +0000 (21:09 +0200)
commitbe21180de52728ca1a99de2812f930d752164032
treeff5c9d77d023d049c51b84323b809bd16bd080f8
parentfae971b1e7447a4cea4a5bc83f6cf83d9ff0a1a7
hwmon: (pc87427) Move sysfs file removal to a separate function

The sysfs file removal code is the same in the probe error path and in
the remove function, so move it to a separate function to avoid code
duplication.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/pc87427.c