Skip to content

Commit

Permalink
iio: amplifiers: ad8366: Remove regulator_put
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Jonathan Cameron committed Sep 28, 2013
1 parent bda2f8f commit d3789c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/iio/amplifiers/ad8366.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d3789c3

Please sign in to comment.