[PATCH v2 1/1] pinctrl: microchip-sgpio: Correct the fwnode_irq_get() return value check

Linus Walleij linus.walleij at linaro.org
Thu Sep 8 01:34:48 PDT 2022


On Tue, Sep 6, 2022 at 1:50 PM Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:

> 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 at linux.intel.com>
> Reviewed-by: Michael Walle <michael at walle.cc>

Patch applied.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list