Skip to content

Commit

Permalink
lp8727_charger: Use IRQF_ONESHOT
Browse files Browse the repository at this point in the history
Generated by: scripts/coccinelle/misc/irqf_oneshot.cocci

ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT

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: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Fengguang Wu authored and Anton Vorontsov committed Sep 20, 2012
1 parent f1ade35 commit 7c577c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/lp8727_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ static int lp8727_intr_config(struct lp8727_chg *pchg)
return request_threaded_irq(pchg->client->irq,
NULL,
lp8727_isr_func,
IRQF_TRIGGER_FALLING,
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
"lp8727_irq",
pchg);
}
Expand Down

0 comments on commit 7c577c0

Please sign in to comment.