projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa55b7d
)
irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc()
author
Pali Rohár
<pali@kernel.org>
Thu, 25 Nov 2021 13:00:56 +0000
(14:00 +0100)
committer
Marc Zyngier
<maz@kernel.org>
Thu, 25 Nov 2021 16:49:38 +0000
(16:49 +0000)
IRQ domain alloc function should return zero on success. Non-zero value
indicates failure.
Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes:
fcc392d501bd
("irqchip/armada-370-xp: Use the generic MSI infrastructure")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20211125130057.26705-1-pali@kernel.org
drivers/irqchip/irq-armada-370-xp.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-armada-370-xp.c
b/drivers/irqchip/irq-armada-370-xp.c
index
80906bf
..
41ad745
100644
(file)
--- a/
drivers/irqchip/irq-armada-370-xp.c
+++ b/
drivers/irqchip/irq-armada-370-xp.c
@@
-250,7
+250,7
@@
static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq,
NULL, NULL);
}
- return
hwirq
;
+ return
0
;
}
static void armada_370_xp_msi_free(struct irq_domain *domain,