summaryrefslogtreecommitdiff
path: root/drivers/iio/amplifiers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-24 12:49:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-09-28 11:49:45 +0100
commitd3789c3ee2e2b7e8c9b6043e9e8715d6d1e80299 (patch)
tree140a572a56aa6ece1c9ada013ef133bd91a58f63 /drivers/iio/amplifiers
parentbda2f8fca20b564ac8edb2b9c080d942c2144359 (diff)
iio: amplifiers: ad8366: Remove regulator_put
Since devm_regulator_get is used, regulator_put should not be used. Remove it. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/amplifiers')
-rw-r--r--drivers/iio/amplifiers/ad8366.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iio/amplifiers/ad8366.c b/drivers/iio/amplifiers/ad8366.c
index d0a79a4bce1c..ba6f6a91dfff 100644
--- a/drivers/iio/amplifiers/ad8366.c
+++ b/drivers/iio/amplifiers/ad8366.c
@@ -185,10 +185,8 @@ static int ad8366_remove(struct spi_device *spi)
iio_device_unregister(indio_dev);
- if (!IS_ERR(reg)) {
+ if (!IS_ERR(reg))
regulator_disable(reg);
- regulator_put(reg);
- }
return 0;
}