Skip to content

Commit

Permalink
mfd: Use IRQF_ONESHOT for 88pm860x
Browse files Browse the repository at this point in the history
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: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Fengguang Wu authored and Samuel Ortiz committed Sep 19, 2012
1 parent 9582fdc commit 5016498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/88pm860x-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ static int __devinit device_irq_init(struct pm860x_chip *chip,
#endif
}

ret = request_threaded_irq(chip->core_irq, NULL, pm860x_irq, flags,
ret = request_threaded_irq(chip->core_irq, NULL, pm860x_irq, flags | IRQF_ONESHOT,
"88pm860x", chip);
if (ret) {
dev_err(chip->dev, "Failed to request IRQ: %d\n", ret);
Expand Down

0 comments on commit 5016498

Please sign in to comment.