Commit 16ed926e authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM] Only call set_type method in setup_irq if it's defined

parent 0a3a98f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -710,7 +710,8 @@ int setup_irq(unsigned int irq, struct irqaction *new)
		desc->pending = 0;
		desc->disable_depth = 1;

		if (new->flags & SA_TRIGGER_MASK) {
		if (new->flags & SA_TRIGGER_MASK &&
		    desc->chip->set_type) {
			unsigned int type = new->flags & SA_TRIGGER_MASK;
			desc->chip->set_type(irq, type);
		}