]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (sht15) Check return value of regulator_enable()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Mar 2013 07:33:30 +0000 (15:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:22 +0000 (11:26 -0700)
commit6d29c5ec4f2f59b5d0426b14722481510a1ef233
treea24b5386103efa97b5143de212a0fadeda2c3958
parent71192d4685c1a1fbaff5a1c6023095901bbb1cee
hwmon: (sht15) Check return value of regulator_enable()

commit 3e78080f81481aa8340374d5a37ae033c1cf4272 upstream.

Not having power is a pretty serious error so check that we are able to
enable the supply and error out if we can't.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sht15.c