iio: amplifiers: ad8366: Remove regulator_put
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/iio/amplifiers/ad8366.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/iio/amplifiers/ad8366.c +1 -3
@@ -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 ; }
Signature · 1 line
1.7.9.5
Quoted 4 lines · Sachin Kamat
Since
devm_regulator_getis used,regulator_putshould not be used. Remove it.Signed-off-by Sachin Kamat <[email protected]>
Applied to the fixes-togreg branch of iio.git
Thanks
Quoted 21 lines
--- drivers/iio/amplifiers/ad8366.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/iio/amplifiers/ad8366.c +1
-3@@ -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 ; }