summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/devicetree.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-09-06 14:50:21 +0300
committerLinus Walleij <linus.walleij@linaro.org>2022-09-08 11:34:27 +0300
commit6323f916686d4e9d299a53114b28ecaf833422cd (patch)
treeab977127d497e74f152d1c438a44d03c82b8c8f5 /drivers/pinctrl/devicetree.c
parent8c943137c00a773ece8d324862910d53832a97a1 (diff)
downloadlinux-6323f916686d4e9d299a53114b28ecaf833422cd.tar.xz
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>
Diffstat (limited to 'drivers/pinctrl/devicetree.c')
0 files changed, 0 insertions, 0 deletions