]> git.karo-electronics.de Git - linux-beck.git/commitdiff
irqdomain: Make irq_domain_alloc_irqs_recursive available
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 23 Nov 2015 08:26:04 +0000 (08:26 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 16 Dec 2015 15:29:44 +0000 (15:29 +0000)
We are soon going to need the MSI layer to call into the domain
allocators. Instead of open coding this, make the standard
irq_domain_alloc_irqs_recursive function available to the MSI
layer.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/irqdomain.h
kernel/irq/irqdomain.c

index d5e5c5bef28c45e29bff88b175d581c0595b73f9..cf96c6a326f76cea762fd0cad5e4df67a3837145 100644 (file)
@@ -367,6 +367,9 @@ static inline int irq_domain_alloc_irqs(struct irq_domain *domain,
        return __irq_domain_alloc_irqs(domain, -1, nr_irqs, node, arg, false);
 }
 
+extern int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
+                                          unsigned int irq_base,
+                                          unsigned int nr_irqs, void *arg);
 extern int irq_domain_set_hwirq_and_chip(struct irq_domain *domain,
                                         unsigned int virq,
                                         irq_hw_number_t hwirq,
index 22aa9612ef7ca98cd8796188a7021810cc86d05a..1c9973e1b3160d6d5eab21f39cc773f467f14036 100644 (file)
@@ -1125,9 +1125,9 @@ static void irq_domain_free_irqs_recursive(struct irq_domain *domain,
        }
 }
 
-static int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
-                                          unsigned int irq_base,
-                                          unsigned int nr_irqs, void *arg)
+int irq_domain_alloc_irqs_recursive(struct irq_domain *domain,
+                                   unsigned int irq_base,
+                                   unsigned int nr_irqs, void *arg)
 {
        int ret = 0;
        struct irq_domain *parent = domain->parent;