projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50f0f26
)
irqchip/aspeed-scu-ic: Fix irq_of_parse_and_map() return value
author
Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org>
Sat, 23 Apr 2022 09:42:27 +0000
(11:42 +0200)
committer
Marc Zyngier
<maz@kernel.org>
Wed, 4 May 2022 15:37:48 +0000
(16:37 +0100)
The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO.
Fixes: 04f605906ff0 ("irqchip: Add Aspeed SCU interrupt controller")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link:
https://lore.kernel.org/r/20220423094227.33148-2-krzysztof.kozlowski@linaro.org
drivers/irqchip/irq-aspeed-scu-ic.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-aspeed-scu-ic.c
b/drivers/irqchip/irq-aspeed-scu-ic.c
index 18b77c3e6db4ba939b79152b5df8b79316c60e86..279e92cf0b16bcddd40088cbc3cc8de9da820617 100644
(file)
--- a/
drivers/irqchip/irq-aspeed-scu-ic.c
+++ b/
drivers/irqchip/irq-aspeed-scu-ic.c
@@
-157,8
+157,8
@@
static int aspeed_scu_ic_of_init_common(struct aspeed_scu_ic *scu_ic,
}
irq = irq_of_parse_and_map(node, 0);
- if (
irq < 0
) {
- rc =
irq
;
+ if (
!irq
) {
+ rc =
-EINVAL
;
goto err;
}