hwmon: (tmp102) Don't always stop chip at exit
authorJean Delvare <khali@linux-fr.org>
Thu, 27 May 2010 17:58:59 +0000 (19:58 +0200)
committerJean Delvare <khali@linux-fr.org>
Thu, 27 May 2010 17:58:59 +0000 (19:58 +0200)
Only stop the chip at driver exit if it was stopped when driver was
loaded. Leave it running otherwise.

Also restore the device configuration if probe failed, to not leave
the system in a dangling state.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Steven King <sfking@fdwdc.com>

No differences found