hwmon: (lm90) Restore original configuration if probe function fails
authorGuenter Roeck <linux@roeck-us.net>
Fri, 23 Mar 2012 09:02:18 +0000 (10:02 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 23 Mar 2012 09:02:18 +0000 (10:02 +0100)
The lm90 driver restores the original chip configuration in its exit function.
However, the chip configuration is not restored if the probe function fails.
Restore it there as well.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

No differences found