mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
[ARM] Only call set_type method in setup_irq if it's defined
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
0a3a98f6dd
commit
16ed926eee
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue