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

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

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 0a3a98f6
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment