Commit 09e09069 authored by Fengguang Wu's avatar Fengguang Wu Committed by Samuel Ortiz

mfd: Use IRQF_ONESHOT for twl6040

Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

Make sure threaded IRQs without a primary handler are always request
with IRQF_ONESHOT.
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 50164984
...@@ -584,7 +584,7 @@ static int __devinit twl6040_probe(struct i2c_client *client, ...@@ -584,7 +584,7 @@ static int __devinit twl6040_probe(struct i2c_client *client,
goto irq_init_err; goto irq_init_err;
ret = request_threaded_irq(twl6040->irq_base + TWL6040_IRQ_READY, ret = request_threaded_irq(twl6040->irq_base + TWL6040_IRQ_READY,
NULL, twl6040_naudint_handler, 0, NULL, twl6040_naudint_handler, IRQF_ONESHOT,
"twl6040_irq_ready", twl6040); "twl6040_irq_ready", twl6040);
if (ret) { if (ret) {
dev_err(twl6040->dev, "READY IRQ request failed: %d\n", dev_err(twl6040->dev, "READY IRQ request failed: %d\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment