diff options
author | dongjian <dongjian@yulong.com> | 2021-03-22 12:21:33 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-03-22 14:54:24 +0100 |
commit | 2469b836fa835c67648acad17d62bc805236a6ea (patch) | |
tree | eea7f36088f68c680c32c098c4b9c578b5659ee5 /drivers/power/supply/tps65090-charger.c | |
parent | power: supply: bq27xxx: Add support for BQ78Z100 (diff) | |
download | linux-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.c | 2 |
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, |