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

From: Bartosz Golaszewski

Date: Tue Jun 23 2026 - 03:53:59 EST


On Mon, 22 Jun 2026 17:31:37 +0200, Pengpeng Hou <pengpeng@xxxxxxxxxxx> said:
> mvebu_gpio_probe() registers the GPIO chip with devm_gpiochip_add_data()
> but ignores the return value. If registration fails, probe continues and
> leaves later code operating on a GPIO chip that was never published to
> gpiolib.
>
> Return the registration error so the device fails probe cleanly.
>
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---

Can you add the Fixes tag please?

Bart