hwmon: (lm85) Fix error paths in probe function
authorJean Delvare <khali@linux-fr.org>
Fri, 29 Apr 2011 14:33:36 +0000 (16:33 +0200)
committerJean Delvare <khali@endymion.delvare>
Fri, 29 Apr 2011 14:33:36 +0000 (16:33 +0200)
commitbc4d45f1901042a295b10949f51d24cce223e65d
tree61de31e24034cce008e7fd2544ccfdaa95678acd
parent5f441e2256506a5878d276399e0a22a13942fe4b
hwmon: (lm85) Fix error paths in probe function

We must remove all files we created, even in error cases.

Fixes second part of kernel bug #34072:
https://bugzilla.kernel.org/show_bug.cgi?id=34072

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