Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Jonathan Cameron
d3789c3e bda2f8fc

+1 -3
+1 -3
drivers/iio/amplifiers/ad8366.c
··· 185 185 186 186 iio_device_unregister(indio_dev); 187 187 188 - if (!IS_ERR(reg)) { 188 + if (!IS_ERR(reg)) 189 189 regulator_disable(reg); 190 - regulator_put(reg); 191 - } 192 190 193 191 return 0; 194 192 }