mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
pinctrl: mvebu: Fix irq_of_parse_and_map() return value
[ Upstream commit71bc7cf3be
] The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO. Fixes:2f22760539
("pinctrl: armada-37xx: Add irqchip support") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220422105339.78810-1-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
14a762155f
commit
07c674e2f6
1 changed files with 1 additions and 1 deletions
|
@ -710,7 +710,7 @@ static int armada_37xx_irqchip_register(struct platform_device *pdev,
|
|||
for (i = 0; i < nr_irq_parent; i++) {
|
||||
int irq = irq_of_parse_and_map(np, i);
|
||||
|
||||
if (irq < 0)
|
||||
if (!irq)
|
||||
continue;
|
||||
|
||||
gpiochip_set_chained_irqchip(gc, irqchip, irq,
|
||||
|
|
Loading…
Reference in a new issue