[PATCH v2] gpio: lpc32xx: check devm_gpiochip_add_data() return value

Bartosz Golaszewski bartosz.golaszewski at oss.qualcomm.com
Mon Oct 19 00:57:25 PDT 2026


On Fri, 16 Oct 2026 21:12:09 +0530, Jayaraj Devaraj wrote:
> lpc32xx_gpio_probe() registers each gpio chip with
> devm_gpiochip_add_data() but ignores the return value. If registering
> a chip fails, probe still returns 0, so the driver binds with a chip
> missing and no error is reported.
> 
> Check the return value, print an error naming the failing chip and
> return the error code. Chips registered earlier in the loop are devm
> managed and are removed automatically on failure.
> 
> [...]

Applied, thanks!

[1/1] gpio: lpc32xx: check devm_gpiochip_add_data() return value
      https://git.kernel.org/brgl/c/c117172a46c5169b28293003a109c0cc7b7588d1

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>



More information about the linux-arm-kernel mailing list