diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/manage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 400b12a63649..7c85d69188ef 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -328,12 +328,14 @@ int setup_irq(unsigned int irq, struct irqaction *new) | |||
328 | return 0; | 328 | return 0; |
329 | 329 | ||
330 | mismatch: | 330 | mismatch: |
331 | #ifdef CONFIG_DEBUG_SHIRQ | ||
331 | if (!(new->flags & IRQF_PROBE_SHARED)) { | 332 | if (!(new->flags & IRQF_PROBE_SHARED)) { |
332 | printk(KERN_ERR "IRQ handler type mismatch for IRQ %d\n", irq); | 333 | printk(KERN_ERR "IRQ handler type mismatch for IRQ %d\n", irq); |
333 | if (old_name) | 334 | if (old_name) |
334 | printk(KERN_ERR "current handler: %s\n", old_name); | 335 | printk(KERN_ERR "current handler: %s\n", old_name); |
335 | dump_stack(); | 336 | dump_stack(); |
336 | } | 337 | } |
338 | #endif | ||
337 | spin_unlock_irqrestore(&desc->lock, flags); | 339 | spin_unlock_irqrestore(&desc->lock, flags); |
338 | return -EBUSY; | 340 | return -EBUSY; |
339 | } | 341 | } |