Skip to content

Commit

Permalink
power_supply: pda_power: Don't request shared IRQs w/ IRQF_DISABLED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philipp Zabel authored and Anton Vorontsov committed Jan 25, 2009
1 parent f3b8436 commit 74194cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/pda_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

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;

Expand Down

0 comments on commit 74194cc

Please sign in to comment.