]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5467a9236dd8314953be444dc3e4fe26022b3d0
tree60165028341195ff004c5dac0f9702c8e23aaace
parent82107611698a18ad5ca25764491d98f13877dff3
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