Commit 6d29c5ec authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman
Browse files

hwmon: (sht15) Check return value of regulator_enable()



commit 3e78080f 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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 71192d46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment