]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: pistachio: fix use of irq_of_parse_and_map()
authorLv Ruyi <lv.ruyi@zte.com.cn>
Sun, 24 Apr 2022 03:14:30 +0000 (03:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 10:20:21 +0000 (12:20 +0200)
commitaa7d6ea2d167b42a56dd369a50f1aa3f58a66577
tree7d1df2ff5841d6ea78c1e75849f66fd95ad1d2c7
parent9bc9179d931624fa8a4c4f7b688b1d10f44699e5
pinctrl: pistachio: fix use of irq_of_parse_and_map()

[ Upstream commit 0c9843a74a85224a89daa81fa66891dae2f930e1 ]

The irq_of_parse_and_map() function returns 0 on failure, and does not
return an negative value.

Fixes: cefc03e5995e ("pinctrl: Add Pistachio SoC pin control driver")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Link: https://lore.kernel.org/r/20220424031430.3170759-1-lv.ruyi@zte.com.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-pistachio.c