aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2020-11-16 09:07:19 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-11-30 01:41:15 +0100
commitdf12470ce775cd126f26c96d240959b0c1929e23 (patch)
treef686fd906a7e4dd8abe3adfc4a437e3cb2a97611 /drivers/power
parentpower: supply: axp288_charger: Fix HP Pavilion x2 10 DMI matching (diff)
downloadlinux-dev-df12470ce775cd126f26c96d240959b0c1929e23.tar.xz
linux-dev-df12470ce775cd126f26c96d240959b0c1929e23.zip
power: supply: Fix missing IRQF_ONESHOT as only threaded handler
Coccinelle noticed: drivers/power/supply/ab8500_btemp.c:1107:8-28: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ab8500_btemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/ab8500_btemp.c b/drivers/power/supply/ab8500_btemp.c
index 909f0242bacb..e0b662b82255 100644
--- a/drivers/power/supply/ab8500_btemp.c
+++ b/drivers/power/supply/ab8500_btemp.c
@@ -1105,7 +1105,7 @@ static int ab8500_btemp_probe(struct platform_device *pdev)
}
ret = request_threaded_irq(irq, NULL, ab8500_btemp_irq[i].isr,
- IRQF_SHARED | IRQF_NO_SUSPEND,
+ IRQF_SHARED | IRQF_NO_SUSPEND | IRQF_ONESHOT,
ab8500_btemp_irq[i].name, di);
if (ret) {