diff options
author | Marc Zyngier <maz@kernel.org> | 2023-02-06 17:21:15 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-02-06 17:21:15 +0000 |
commit | 3d812a0f27baa2d094f2c18298d48b012878dc0b (patch) | |
tree | 6955443126e1f082d9c8aa4d16ad6f95e6eea8ee /kernel | |
parent | c19f897194288ec286bb52001b9ee9551876a614 (diff) |
genirq/ipi-mux: Use irq_domain_alloc_irqs()
Using __irq_domain_alloc_irqs() is an unnecessary complexity. Use
irq_domain_alloc_irqs(), which is simpler and makes the code more
readable.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/ipi-mux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/ipi-mux.c b/kernel/irq/ipi-mux.c index 3a403c3a785d..fa4fc18c6131 100644 --- a/kernel/irq/ipi-mux.c +++ b/kernel/irq/ipi-mux.c @@ -185,8 +185,7 @@ int ipi_mux_create(unsigned int nr_ipi, void (*mux_send)(unsigned int cpu)) domain->flags |= IRQ_DOMAIN_FLAG_IPI_SINGLE; irq_domain_update_bus_token(domain, DOMAIN_BUS_IPI); - rc = __irq_domain_alloc_irqs(domain, -1, nr_ipi, - NUMA_NO_NODE, NULL, false, NULL); + rc = irq_domain_alloc_irqs(domain, nr_ipi, NUMA_NO_NODE, NULL); if (rc <= 0) { pr_err("unable to alloc IRQs from IPI Mux domain\n"); goto fail_free_domain; |