mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
irqchip/aspeed-scu-ic: Fix irq_of_parse_and_map() return value
[ Upstream commitf03a9670d2] The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO. Fixes:04f605906f("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f4b503b4ef
commit
0d5c8ac922
|
|
@ -159,8 +159,8 @@ static int aspeed_scu_ic_of_init_common(struct aspeed_scu_ic *scu_ic,
|
||||||
}
|
}
|
||||||
|
|
||||||
irq = irq_of_parse_and_map(node, 0);
|
irq = irq_of_parse_and_map(node, 0);
|
||||||
if (irq < 0) {
|
if (!irq) {
|
||||||
rc = irq;
|
rc = -EINVAL;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user