mirror of https://gitee.com/openkylin/linux.git
PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc()
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>
This commit is contained in:
parent
a38fd87484
commit
1e83130f01
|
@ -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