diff options
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 469814e9b9ee..77a51be36010 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -377,7 +377,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
377 | 377 | ||
378 | /* Setup the type (level, edge polarity) if configured: */ | 378 | /* Setup the type (level, edge polarity) if configured: */ |
379 | if (new->flags & IRQF_TRIGGER_MASK) { | 379 | if (new->flags & IRQF_TRIGGER_MASK) { |
380 | if (desc->chip && desc->chip->set_type) | 380 | if (desc->chip->set_type) |
381 | desc->chip->set_type(irq, | 381 | desc->chip->set_type(irq, |
382 | new->flags & IRQF_TRIGGER_MASK); | 382 | new->flags & IRQF_TRIGGER_MASK); |
383 | else | 383 | else |
@@ -387,8 +387,7 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
387 | */ | 387 | */ |
388 | printk(KERN_WARNING "No IRQF_TRIGGER set_type " | 388 | printk(KERN_WARNING "No IRQF_TRIGGER set_type " |
389 | "function for IRQ %d (%s)\n", irq, | 389 | "function for IRQ %d (%s)\n", irq, |
390 | desc->chip ? desc->chip->name : | 390 | desc->chip->name); |
391 | "unknown"); | ||
392 | } else | 391 | } else |
393 | compat_irq_chip_set_default_handler(desc); | 392 | compat_irq_chip_set_default_handler(desc); |
394 | 393 | ||