mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc()
[ Upstream commit1e83130f01] IRQ domain alloc function should return zero on success. Non-zero value indicates failure. Link: https://lore.kernel.org/r/20210303142202.25780-1-pali@kernel.org Fixes:fc54bae288("PCI: iproc: Allow allocation of multiple MSIs") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Krzysztof Wilczyński <kw@linux.com> Acked-by: Ray Jui <ray.jui@broadcom.com> Acked-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1ce0d1d365
commit
c5c0ede221
|
|
@ -271,7 +271,7 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return hwirq;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iproc_msi_irq_domain_free(struct irq_domain *domain,
|
static void iproc_msi_irq_domain_free(struct irq_domain *domain,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user