]> git.ipfire.org Git - people/ms/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:29:49 +0000 (11:29 -0700)
commitcca30bd4c94123776dc3620cd13c6aedb76e4b55
treeccd84ecbb358e3203b3b417b4dcec1a1695a6ae9
parentfbad8075baa695da5da4952969682172966a4fac
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