Re: [PATCH v3] gpio: htc-egpio: use managed gpiochip registration

From: Bartosz Golaszewski

Date: Fri Jun 26 2026 - 05:59:41 EST



On Wed, 24 Jun 2026 21:18:28 +0800, Pengpeng Hou wrote:
> egpio_probe() registers each nested gpio_chip with gpiochip_add_data()
> but ignores the return value. If one registration fails, probe still
> returns success even though one of the chips was not published to
> gpiolib.
>
> Use devm_gpiochip_add_data() and fail probe if any chip registration
> fails. This lets devres unwind already registered chips and prevents
> the driver from publishing a partially initialized device.
>
> [...]

Applied, thanks!

[1/1] gpio: htc-egpio: use managed gpiochip registration
https://git.kernel.org/brgl/c/17326db5f0ab4ec1901e75d052b5ebef486b467f

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>