]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
reset: fold ida_alloc() into reset_create_gpio_aux_device()
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 6 Mar 2026 17:22:50 +0000 (18:22 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Mar 2026 09:20:03 +0000 (10:20 +0100)
commit6703784ab9a8039bd3f476db2643414c45690c68
tree7e02db0a780d85ea3b013b1f90ff314708543f4b
parent20adbf3b8f5c5787da29f8cdd7cfc4fa87854bd5
reset: fold ida_alloc() into reset_create_gpio_aux_device()

We don't need to know the IDA value outside of the function that creates
the auxiliary reset-gpio device. Simplify error handling by folding it
into reset_create_gpio_aux_device().

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c