]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (lm90) Restore original configuration if probe function fails
authorGuenter Roeck <linux@roeck-us.net>
Sun, 25 Mar 2012 23:42:16 +0000 (10:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 25 Mar 2012 23:42:16 +0000 (10:42 +1100)
commitbce67c07b1ab24d00e6ade5510e795770f199f35
tree43e81025282433a3496b56968e6e15fe54dee9c8
parent97a2fd9b2151cd9a65f8fc4728b5f838ade7c118
hwmon: (lm90) Restore original configuration if probe function fails

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>
drivers/hwmon/lm90.c