summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorValentin Rothberg <valentinrothberg@gmail.com>2015-12-02 11:43:10 +0300
committerOlof Johansson <olof@lixom.net>2015-12-22 08:08:55 +0300
commit86af47413a626f9804f48b354e290459660177ce (patch)
tree0c07c34ffea9d95f8ca0e4ef8fee15871c3613ef /drivers/iio
parent11c7a6c5a3232e2ff1127d80d609daa95df5d5d4 (diff)
downloadlinux-86af47413a626f9804f48b354e290459660177ce.tar.xz
iio: exynos-adc: fix irqf_oneshot.cocci warnings
Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail. So pass the IRQF_ONESHOT flag in this case. Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/exynos_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c
index d11cd604562c..c15756d7bf7f 100644
--- a/drivers/iio/adc/exynos_adc.c
+++ b/drivers/iio/adc/exynos_adc.c
@@ -739,7 +739,7 @@ static int exynos_adc_ts_init(struct exynos_adc *info)
disable_irq(info->tsirq);
ret = request_threaded_irq(info->tsirq, NULL, exynos_ts_isr,
- 0, "touchscreen", info);
+ IRQF_ONESHOT, "touchscreen", info);
if (ret)
input_unregister_device(info->input);