power_supply: pda_power: Don't request shared IRQs w/ IRQF_DISABLED
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 18 Jan 2009 13:46:21 +0000 (14:46 +0100)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Sun, 25 Jan 2009 23:09:26 +0000 (02:09 +0300)
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>
drivers/power/pda_power.c

index d30bb766fcef0af79dbc654e2c99c0dad3858837..b56a704409d26365f88f144034d12e3036f34854 100644 (file)
@@ -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;