Re: [PATCH v3] gpio: mvebu: fail probe if gpiochip registration fails
From: Bartosz Golaszewski
Date: Fri Jun 26 2026 - 05:59:00 EST
On Wed, 24 Jun 2026 21:16:45 +0800, Pengpeng Hou wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] gpio: mvebu: fail probe if gpiochip registration fails
https://git.kernel.org/brgl/c/479e91fc92416a4d54d2b3150aa1e4550d9cc759
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>