diff options
Diffstat (limited to 'kernel/irq/irqdomain.c')
-rw-r--r-- | kernel/irq/irqdomain.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index 45c74373c7a4..3bf9793d8825 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c | |||
@@ -458,6 +458,20 @@ void irq_set_default_host(struct irq_domain *domain) | |||
458 | } | 458 | } |
459 | EXPORT_SYMBOL_GPL(irq_set_default_host); | 459 | EXPORT_SYMBOL_GPL(irq_set_default_host); |
460 | 460 | ||
461 | /** | ||
462 | * irq_get_default_host() - Retrieve the "default" irq domain | ||
463 | * | ||
464 | * Returns: the default domain, if any. | ||
465 | * | ||
466 | * Modern code should never use this. This should only be used on | ||
467 | * systems that cannot implement a firmware->fwnode mapping (which | ||
468 | * both DT and ACPI provide). | ||
469 | */ | ||
470 | struct irq_domain *irq_get_default_host(void) | ||
471 | { | ||
472 | return irq_default_domain; | ||
473 | } | ||
474 | |||
461 | static void irq_domain_clear_mapping(struct irq_domain *domain, | 475 | static void irq_domain_clear_mapping(struct irq_domain *domain, |
462 | irq_hw_number_t hwirq) | 476 | irq_hw_number_t hwirq) |
463 | { | 477 | { |