summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-01-19 18:39:40 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-01-21 01:45:34 +0200
commit5a00b6c2438460b870a451f14593fc40d3c7edf6 (patch)
treea851fbf5e480d51e6b6e54e4bc5772decb8dc5e6 /drivers/platform
parente95ac4574b23a5fd8f5c5f2c19ef69ac15b7252c (diff)
downloadlinux-5a00b6c2438460b870a451f14593fc40d3c7edf6.tar.gz
linux-5a00b6c2438460b870a451f14593fc40d3c7edf6.tar.bz2
linux-5a00b6c2438460b870a451f14593fc40d3c7edf6.zip
platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT
The commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") starts refusing misconfigured interrupt handlers. This makes intel_mid_powerbtn not working anymore. Add a mandatory flag to a threaded IRQ request in the driver. Fixes: 1c6c69525b40 ("genirq: Reject bogus threaded irq requests") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_mid_powerbtn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powerbtn.c
index 1fc0de870ff8..361770568ad0 100644
--- a/drivers/platform/x86/intel_mid_powerbtn.c
+++ b/drivers/platform/x86/intel_mid_powerbtn.c
@@ -77,7 +77,7 @@ static int mfld_pb_probe(struct platform_device *pdev)
input_set_capability(input, EV_KEY, KEY_POWER);
- error = request_threaded_irq(irq, NULL, mfld_pb_isr, 0,
+ error = request_threaded_irq(irq, NULL, mfld_pb_isr, IRQF_ONESHOT,
DRIVER_NAME, input);
if (error) {
dev_err(&pdev->dev, "Unable to request irq %d for mfld power"