Re: [PATCH] gpio: mlxbf3: fail probe if gpiochip registration fails

From: Linus Walleij

Date: Mon Jun 15 2026 - 08:50:10 EST


On Mon, Jun 15, 2026 at 11:19 AM Pengpeng Hou <pengpeng@xxxxxxxxxxx> wrote:

> mlxbf3_gpio_probe() logs a devm_gpiochip_add_data() failure but still
> returns success. That leaves the platform device bound even though the
> GPIO chip was not registered.
>
> Return the registration error so probe failure matches the missing
> gpiochip state.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>

Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>

Yours,
Linus Walleij