aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/pda_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/pda_power.c')
-rw-r--r--drivers/power/pda_power.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/power/pda_power.c b/drivers/power/pda_power.c
index 6a1ca735e935..7312f2651647 100644
--- a/drivers/power/pda_power.c
+++ b/drivers/power/pda_power.c
@@ -24,11 +24,7 @@
24 24
25static inline unsigned int get_irq_flags(struct resource *res) 25static inline unsigned int get_irq_flags(struct resource *res)
26{ 26{
27 unsigned int flags = IRQF_SAMPLE_RANDOM | IRQF_SHARED; 27 return IRQF_SHARED | (res->flags & IRQF_TRIGGER_MASK);
28
29 flags |= res->flags & IRQF_TRIGGER_MASK;
30
31 return flags;
32} 28}
33 29
34static struct device *dev; 30static struct device *dev;