summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/tps65090-charger.c
diff options
context:
space:
mode:
authordongjian <dongjian@yulong.com>2021-03-22 12:21:33 +0100
committerSebastian Reichel <sre@kernel.org>2021-03-22 14:54:24 +0100
commit2469b836fa835c67648acad17d62bc805236a6ea (patch)
treeeea7f36088f68c680c32c098c4b9c578b5659ee5 /drivers/power/supply/tps65090-charger.c
parentpower: supply: bq27xxx: Add support for BQ78Z100 (diff)
downloadlinux-2469b836fa835c67648acad17d62bc805236a6ea.tar.xz
linux-2469b836fa835c67648acad17d62bc805236a6ea.zip
power: supply: Use IRQF_ONESHOT
Fixes coccicheck error: drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: drivers/power/supply/lp8788-charger.c:502:8-28: ERROR: drivers/power/supply/tps65217_charger.c:239:8-33: ERROR: drivers/power/supply/tps65090-charger.c:303:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Signed-off-by: dongjian <dongjian@yulong.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/tps65090-charger.c')
-rw-r--r--drivers/power/supply/tps65090-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/tps65090-charger.c b/drivers/power/supply/tps65090-charger.c
index 6b0098e5a88b..0990b2fa6cd8 100644
--- a/drivers/power/supply/tps65090-charger.c
+++ b/drivers/power/supply/tps65090-charger.c
@@ -301,7 +301,7 @@ static int tps65090_charger_probe(struct platform_device *pdev)
if (irq != -ENXIO) {
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
- tps65090_charger_isr, 0, "tps65090-charger", cdata);
+ tps65090_charger_isr, IRQF_ONESHOT, "tps65090-charger", cdata);
if (ret) {
dev_err(cdata->dev,
"Unable to register irq %d err %d\n", irq,