Commit 1e83130f authored by Pali Rohár's avatar Pali Rohár Committed by Lorenzo Pieralisi
Browse files

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: fc54bae2 ("PCI: iproc: Allow allocation of multiple MSIs")
Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarKrzysztof Wilczyński <kw@linux.com>
Acked-by: default avatarRay Jui <ray.jui@broadcom.com>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
parent a38fd874
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain,
				    NULL, NULL);
	}

	return hwirq;
	return 0;
}

static void iproc_msi_irq_domain_free(struct irq_domain *domain,