]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: nuvoton: npcm8xx: Fix error handling in npcm8xx_gpio_fw()
authorYue Haibing <yuehaibing@huawei.com>
Sat, 18 Jan 2025 03:13:34 +0000 (11:13 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Feb 2025 23:16:01 +0000 (00:16 +0100)
commitd6c6fd77e5816e3f6689a2767cdd777797506f24
tree45862e919d506bdee1a68db3fd65a86a65c80df4
parent75b456278ee3fa6af6cc165ce46a601a5ee34026
pinctrl: nuvoton: npcm8xx: Fix error handling in npcm8xx_gpio_fw()

fwnode_irq_get() was changed to not return 0, fix this by checking
for negative error, also update the error log.

Fixes: acf4884a5717 ("pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/20250118031334.243324-1-yuehaibing@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c