iio:pressure:ms5611: fix missing regulator_disable
authorGregor Boirie <gregor.boirie@parrot.com>
Thu, 17 Mar 2016 11:55:03 +0000 (12:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 20 Mar 2016 11:02:40 +0000 (11:02 +0000)
commit334ecdd0ba45bb68bce0f1429a4a1e9584ba437e
tree8e3788eb72a62f5f6c3ccbb714f754cb3b345228
parent718ba46e5f4e21e45141bf55fd4cccd4b3ba9939
iio:pressure:ms5611: fix missing regulator_disable

Ensure optional regulator is properly disabled when present.

Fixes: 3145229f9191 ("iio:pressure:ms5611: power regulator support")
Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/ms5611.h
drivers/iio/pressure/ms5611_core.c