pinctrl: microchip-sgpio: Correct the fwnode_irq_get() return value check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 6 Sep 2022 11:50:21 +0000 (14:50 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Sep 2022 08:34:27 +0000 (10:34 +0200)
commit6323f916686d4e9d299a53114b28ecaf833422cd
treeab977127d497e74f152d1c438a44d03c82b8c8f5
parent8c943137c00a773ece8d324862910d53832a97a1
pinctrl: microchip-sgpio: Correct the fwnode_irq_get() return value check

fwnode_irq_get() may return all possible signed values, such as Linux
error code. Fix the code to handle this properly.

Fixes: be2dc859abd4 ("pinctrl: pinctrl-microchip-sgpio: Add irq support (for sparx5)")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220906115021.8661-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c