hwmon: (w83795) Move files removal to a separate function
authorJean Delvare <khali@linux-fr.org>
Thu, 28 Oct 2010 18:31:45 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:45 +0000 (20:31 +0200)
commit2fa09878ba1dc458b8cb6e9c8fbc8f2e5401d2b2
tree60165028341195ff004c5dac0f9702c8e23aaace
parent2be381de0f1e5e0324e8b373e7a84fc9d25d05d3
hwmon: (w83795) Move files removal to a separate function

Sysfs files must be removed on device removal but also when device
registration fails. Move the code to a separate function to avoid
code redundancy.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83795.c