diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2014-04-30 10:26:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-04-30 21:47:47 +0100 |
commit | 6442d94ba19da5424d670f4a4523be45e1ee78d9 (patch) | |
tree | bd3d66007664de4f3fe96a0cb8c6286218e6b40d /drivers/iio/adc/exynos_adc.c | |
parent | dd2723f57e3cd8f104884636e92492b884080d59 (diff) | |
download | linux-6442d94ba19da5424d670f4a4523be45e1ee78d9.tar.bz2 |
iio: exynos_adc: do a reinit_completion before the conversion
Add reinit_completion() before the wait_for_completion_timeout in
raw_read() call.
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/exynos_adc.c')
-rw-r--r-- | drivers/iio/adc/exynos_adc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index a9946ec7a3b7..d325aeafe5cb 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -151,6 +151,7 @@ static int exynos_read_raw(struct iio_dev *indio_dev, return -EINVAL; mutex_lock(&indio_dev->mlock); + reinit_completion(&info->completion); /* Select the channel to be used and Trigger conversion */ if (info->version == ADC_V2) { |