]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adt7475) Move sysfs files removal to a separate function
authorJean Delvare <khali@linux-fr.org>
Wed, 9 Dec 2009 19:36:06 +0000 (20:36 +0100)
committerJean Delvare <khali@linux-fr.org>
Wed, 9 Dec 2009 19:36:06 +0000 (20:36 +0100)
commitcadeb657b3fe41f26b2b77d950754a94a168e744
tree2307177c29b69f30cf0a8b35e0e41c58b9340a2e
parentb1515c5f9c7ca376aef6beaba96c43a7b74a0589
hwmon: (adt7475) Move sysfs files removal to a separate function

Move sysfs files removal to a separate function. The code is common to
the device probing error path and the standard device removal path. As
it will grow with future driver development, this avoids code
duplication.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Jordan Crouse <jordan@cosmicpenguin.net>
Cc: "Darrick J. Wong" <djwong@us.ibm.com>
drivers/hwmon/adt7475.c