[PATCH] gpio: xgs-iproc: fix parsing of ngpios property

Linus Walleij linus.walleij at linaro.org
Sun Oct 24 16:49:58 PDT 2021


On Thu, Oct 14, 2021 at 2:33 PM Jonas Gorski <jonas.gorski at gmail.com> wrote:

> of_property_read_u32 returns 0 on success, not true, so we need to
> invert the check to actually take over the provided ngpio value.
>
> Fixes: 6a41b6c5fc20 ("gpio: Add xgs-iproc driver")
> Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>

Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list