diff options
author | Valentin Rothberg <Valentin.Rothberg@lip6.fr> | 2015-03-02 09:32:48 -0500 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-03-02 15:54:48 -0500 |
commit | 1d93b850296339082b7ace26ed20385d3bc5e2c6 (patch) | |
tree | a6c3d3aa7eeb60363868843d34b042374d5631e4 /drivers/power/smb347-charger.c | |
parent | f46bf82e23846fc419861bb7b2c4b041e69b831f (diff) |
power/smb347-charger.c: set IRQF_ONESHOT flag to ensure IRQ request
Since commit 1c6c69525b40eb76de8adf039409722015927dc3 ("genirq: Reject
bogus threaded irq requests") threaded IRQs without a primary handler
need to be requested with IRQF_ONESHOT, otherwise the request may fail.
Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci
Signed-off-by: Valentin Rothberg <Valentin.Rothberg@lip6.fr>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/smb347-charger.c')
-rw-r--r-- | drivers/power/smb347-charger.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/smb347-charger.c b/drivers/power/smb347-charger.c index acf84e80fe98..e9702de262e5 100644 --- a/drivers/power/smb347-charger.c +++ b/drivers/power/smb347-charger.c | |||
@@ -842,7 +842,8 @@ static int smb347_irq_init(struct smb347_charger *smb, | |||
842 | goto fail; | 842 | goto fail; |
843 | 843 | ||
844 | ret = request_threaded_irq(irq, NULL, smb347_interrupt, | 844 | ret = request_threaded_irq(irq, NULL, smb347_interrupt, |
845 | IRQF_TRIGGER_FALLING, client->name, smb); | 845 | IRQF_TRIGGER_FALLING | IRQF_ONESHOT, |
846 | client->name, smb); | ||
846 | if (ret < 0) | 847 | if (ret < 0) |
847 | goto fail_gpio; | 848 | goto fail_gpio; |
848 | 849 | ||