projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda2f8f
)
iio: amplifiers: ad8366: Remove regulator_put
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 24 Sep 2013 11:49:00 +0000
(12:49 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 28 Sep 2013 10:49:45 +0000
(11:49 +0100)
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>
drivers/iio/amplifiers/ad8366.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/amplifiers/ad8366.c
b/drivers/iio/amplifiers/ad8366.c
index d0a79a4bce1c8f5d83410392e3343d779b015e2a..ba6f6a91dfffc63459ca9e92299832e946f740e3 100644
(file)
--- 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;
}