hwmon: (sht15) fix bad error code
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 26 Jan 2012 20:59:00 +0000 (15:59 -0500)
committerSimone Willett <swillett@nvidia.com>
Wed, 8 Feb 2012 22:06:52 +0000 (14:06 -0800)
commit4fe22be3084aeac7c823b5b26de84a8085ecca95
tree3aaab70720113e97d400982c4a777752ec18debc
parente3703d249a6f14ff3be78ae8324f9c2324ee3020
hwmon: (sht15) fix bad error code

commit 6edf3c30af01854c416f8654d3d5d2652470afd4 upstream.

When no platform data was supplied, returned error code was 0.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: I8d12ab55a13d5c97df4d4f185a268ef5c973a66a
Reviewed-on: http://git-master/r/79685
Reviewed-by: Automatic_Commit_Validation_User
drivers/hwmon/sht15.c