kernel: gpio-button-hotplug: Add missing ONESHOT flag to threaded IRQ request
[openwrt/staging/mkresin.git] / package / kernel / gpio-button-hotplug / src / gpio-button-hotplug.c
index 6d1a197d616b627970b61768531c985f75f0c864..0ebe6c55767e642a77d0e5e78d7e36741d1b8476 100644 (file)
@@ -563,7 +563,7 @@ static int gpio_keys_probe(struct platform_device *pdev)
                }
 
                ret = devm_request_threaded_irq(&pdev->dev, button->irq, NULL, button_handle_irq,
-                                               IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
+                                               IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
                                                dev_name(&pdev->dev), bdata);
                if (ret < 0)
                        dev_err(&pdev->dev, "failed to request irq:%d for gpio:%d\n", button->irq, button->gpio);