Commit 74194cc7 authored by Philipp Zabel's avatar Philipp Zabel Committed by Anton Vorontsov

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: default avatarPhilipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent f3b8436a
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
static inline unsigned int get_irq_flags(struct resource *res) static inline unsigned int get_irq_flags(struct resource *res)
{ {
unsigned int flags = IRQF_DISABLED | IRQF_SHARED; unsigned int flags = IRQF_SAMPLE_RANDOM | IRQF_SHARED;
flags |= res->flags & IRQF_TRIGGER_MASK; flags |= res->flags & IRQF_TRIGGER_MASK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment