summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJayaraj Devaraj <jayarajdmit@gmail.com>2026-10-16 21:12:09 +0530
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-10-19 09:57:18 +0200
commitc117172a46c5169b28293003a109c0cc7b7588d1 (patch)
tree9884c0ab0258db8f098e3bc7ace3ebc2d070a3aa /tools/lib/python
parent2450bb0473ca258d954bc3c1d2c13840bdd589e6 (diff)
gpio: lpc32xx: check devm_gpiochip_add_data() return value
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. Signed-off-by: Jayaraj Devaraj <jayarajdmit@gmail.com> Reviewed-by: Vladimir Zapolskiy <vz@mleia.com> Link: https://patch.msgid.link/20261016154209.23193-1-jayarajdmit@gmail.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions