hwmon: (sht15) clean-up the probe function
commit181148ae68799f5b17f09b418b276f56e9179e99
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 12 Apr 2011 19:34:37 +0000 (12 15:34 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 19 May 2011 15:19:34 +0000 (19 08:19 -0700)
treea0252fec3f94fb65459ef1fbb9956de046f06744
parent99a0378de9f887fd4d501f1baa50aaf16d01a8e8
hwmon: (sht15) clean-up the probe function

* Move the creation of sysfs attributes after the end of the
  initialization, and remove them in the error path.
* Release regulator in the error path.
* Add a soft reset command (need to wait 11ms before next command).

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/sht15.c