Commit 74194cc71074c8bc17690a5d826093fb6f6e9928

Authored by Philipp Zabel
Committed by Anton Vorontsov
1 parent f3b8436ad9

power_supply: pda_power: Don't request shared IRQs w/ IRQF_DISABLED

IRQF_DISABLED is not guaranteed for shared IRQs. I think power_changed_isr
doesn't need it anyway, as it only fires a timer.
This patch enables IRQF_SAMPLE_RANDOM instead.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/power/pda_power.c
... ... @@ -20,7 +20,7 @@
20 20  
21 21 static inline unsigned int get_irq_flags(struct resource *res)
22 22 {
23   - unsigned int flags = IRQF_DISABLED | IRQF_SHARED;
  23 + unsigned int flags = IRQF_SAMPLE_RANDOM | IRQF_SHARED;
24 24  
25 25 flags |= res->flags & IRQF_TRIGGER_MASK;
26 26