]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 24 Apr 2022 14:24:09 +0000 (16:24 +0200)
commit43eafafe1ca972e6d046f23059efb3cfe82efa40
treedd96ae153b7da58306c55da1592c1a857e2ad08f
parent844dc7eb0ce1fb669dbfaf30366e2471808a1cea
pinctrl: pistachio: fix use of irq_of_parse_and_map()

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

Fixes: 4ffd7096e16f ("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>
drivers/pinctrl/pinctrl-pistachio.c