aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/irq.c')
-rw-r--r--arch/arm/kernel/irq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index b5645c4462cf..1d50d2b98f55 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -710,7 +710,8 @@ int setup_irq(unsigned int irq, struct irqaction *new)
710 desc->pending = 0; 710 desc->pending = 0;
711 desc->disable_depth = 1; 711 desc->disable_depth = 1;
712 712
713 if (new->flags & SA_TRIGGER_MASK) { 713 if (new->flags & SA_TRIGGER_MASK &&
714 desc->chip->set_type) {
714 unsigned int type = new->flags & SA_TRIGGER_MASK; 715 unsigned int type = new->flags & SA_TRIGGER_MASK;
715 desc->chip->set_type(irq, type); 716 desc->chip->set_type(irq, type);
716 } 717 }