mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 14:12:51 +00:00
platform/x86: intel_chtdc_ti_pwrbtn: Fix missing IRQF_ONESHOT as only threaded handler
Coccinelle noticed: drivers/platform/x86/intel_chtdc_ti_pwrbtn.c:59:7-32: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: Guangqing Zhu <zhuguangqing83@gmail.com> Link: https://lore.kernel.org/r/20210415091435.10486-1-zhuguangqing83@gmail.com Tested-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
8779c688ed
commit
823b31517a
@ -58,7 +58,7 @@ static int chtdc_ti_pwrbtn_probe(struct platform_device *pdev)
|
||||
|
||||
err = devm_request_threaded_irq(dev, irq, NULL,
|
||||
chtdc_ti_pwrbtn_interrupt,
|
||||
0, KBUILD_MODNAME, input);
|
||||
IRQF_ONESHOT, KBUILD_MODNAME, input);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user