iio:st_sensors: fix power regulator usage

Ensure failure to enable power regulators is properly handled.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Gregor Boirie 2016-04-19 11:18:40 +02:00 • committed by Jonathan Cameron
commit 14f295c846
6 changed files with 57 additions and 22 deletions