diff options
-rw-r--r-- | kernel/irq/chip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index c9c0601f0615..c35d74c08b50 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -37,6 +37,12 @@ int irq_set_chip(unsigned int irq, struct irq_chip *chip) | |||
37 | irq_chip_set_defaults(chip); | 37 | irq_chip_set_defaults(chip); |
38 | desc->irq_data.chip = chip; | 38 | desc->irq_data.chip = chip; |
39 | irq_put_desc_unlock(desc, flags); | 39 | irq_put_desc_unlock(desc, flags); |
40 | /* | ||
41 | * For !CONFIG_SPARSE_IRQ make the irq show up in | ||
42 | * allocated_irqs. For the CONFIG_SPARSE_IRQ case, it is | ||
43 | * already marked, and this call is harmless. | ||
44 | */ | ||
45 | irq_reserve_irq(irq); | ||
40 | return 0; | 46 | return 0; |
41 | } | 47 | } |
42 | EXPORT_SYMBOL(irq_set_chip); | 48 | EXPORT_SYMBOL(irq_set_chip); |