iio: magn: ak8975: make sure to power down at remove()
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Jun 2016 12:08:37 +0000 (14:08 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Jun 2016 19:40:12 +0000 (20:40 +0100)
commit8d06cd25f745db8905e303cc915932cc50aa0ae5
treec26b72fafd7c98c3b009feaac5a48b9e38fc18e9
parentb1037c1a498f9bb3b5a81c2f243c605c190da754
iio: magn: ak8975: make sure to power down at remove()

The code was not powering the magnetometer down properly at
remove(): just cutting the regulators without first setting the
device in power off mode. Fix this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c
This page took 0.024785 seconds and 5 git commands to generate.