iio:magnetometer:ak8975: fix missing regulator_disable
authorGregor Boirie <gregor.boirie@parrot.com>
Thu, 17 Mar 2016 16:43:26 +0000 (17:43 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 20 Mar 2016 11:06:15 +0000 (11:06 +0000)
commita9b72c90fc1a7cd547a333e382b3a7c2201fc3e4
tree39b2bad0cd0a413cf1d735176509c3d5b1e4832c
parent9e61d901155bcd4e58cbce5eb4aaa8e870267334
iio:magnetometer:ak8975: fix missing regulator_disable

Ensure optional regulator is properly disabled when present.

Fixes: 63d5d525cbbc ("iio:magnetometer:ak8975: power regulator support")
Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c