pinctrl: wpcm450: Correct the fwnode_irq_get() return value check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Sep 2022 17:55:09 +0000 (20:55 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 4 Oct 2022 07:40:57 +0000 (09:40 +0200)
commitf4a31facfa80df2f440a2fdc2b7f58d6c23925b0
tree649047204ecff7ab14872eb2a5ed8faf3e05cde5
parent66db794ad54ce49d4fd564a16f682f257f608655
pinctrl: wpcm450: Correct the fwnode_irq_get() return value check

fwnode_irq_get() can return zero to indicate IRQ mapping errors.
Handle this case by skipping the interrupt resource.

Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Link: https://lore.kernel.org/r/20220927175509.15695-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c