summaryrefslogtreecommitdiff
path: root/drivers/gpu/nova-core
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-06-24 21:18:28 +0800
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-06-26 11:58:20 +0200
commit17326db5f0ab4ec1901e75d052b5ebef486b467f (patch)
tree863a8b1796a91138b36c47a46d8292e349b957c4 /drivers/gpu/nova-core
parent479e91fc92416a4d54d2b3150aa1e4550d9cc759 (diff)
gpio: htc-egpio: use managed gpiochip registration
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. Fixes: a1635b8fe59d ("[ARM] 4947/1: htc-egpio, a driver for GPIO/IRQ expanders with fixed input/output pins") Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260624131828.94139-1-pengpeng@iscas.ac.cn Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'drivers/gpu/nova-core')
0 files changed, 0 insertions, 0 deletions