提交 86af4741 编写于 作者: V Valentin Rothberg 提交者: Olof Johansson

iio: exynos-adc: fix irqf_oneshot.cocci warnings

Since commit 1c6c6952 ("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: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NValentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: NOlof Johansson <olof@lixom.net>
上级 11c7a6c5
...@@ -739,7 +739,7 @@ static int exynos_adc_ts_init(struct exynos_adc *info) ...@@ -739,7 +739,7 @@ static int exynos_adc_ts_init(struct exynos_adc *info)
disable_irq(info->tsirq); disable_irq(info->tsirq);
ret = request_threaded_irq(info->tsirq, NULL, exynos_ts_isr, ret = request_threaded_irq(info->tsirq, NULL, exynos_ts_isr,
0, "touchscreen", info); IRQF_ONESHOT, "touchscreen", info);
if (ret) if (ret)
input_unregister_device(info->input); input_unregister_device(info->input);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册