mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 20:30:53 +07:00
twl4030_charger: Use IRQF_ONESHOT
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> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
This commit is contained in:
parent
7c577c0d1e
commit
a2778b0fe1
@ -534,7 +534,8 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
ret = request_threaded_irq(bci->irq_chg, NULL,
|
||||
twl4030_charger_interrupt, 0, pdev->name, bci);
|
||||
twl4030_charger_interrupt, IRQF_ONESHOT, pdev->name,
|
||||
bci);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "could not request irq %d, status %d\n",
|
||||
bci->irq_chg, ret);
|
||||
@ -542,7 +543,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
ret = request_threaded_irq(bci->irq_bci, NULL,
|
||||
twl4030_bci_interrupt, 0, pdev->name, bci);
|
||||
twl4030_bci_interrupt, IRQF_ONESHOT, pdev->name, bci);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "could not request irq %d, status %d\n",
|
||||
bci->irq_bci, ret);
|
||||
|
Loading…
Reference in New Issue
Block a user