aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/irq.c')
-rw-r--r--arch/powerpc/kernel/irq.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 67b21a008f6e..eb9fc621e057 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -648,10 +648,14 @@ EXPORT_SYMBOL_GPL(irq_of_parse_and_map);
648 648
649void irq_dispose_mapping(unsigned int virq) 649void irq_dispose_mapping(unsigned int virq)
650{ 650{
651 struct irq_host *host = irq_map[virq].host; 651 struct irq_host *host;
652 irq_hw_number_t hwirq; 652 irq_hw_number_t hwirq;
653 unsigned long flags; 653 unsigned long flags;
654 654
655 if (virq == NO_IRQ)
656 return;
657
658 host = irq_map[virq].host;
655 WARN_ON (host == NULL); 659 WARN_ON (host == NULL);
656 if (host == NULL) 660 if (host == NULL)
657 return; 661 return;