linux/drivers/i2c/muxes
Christophe JAILLET 89efd90ec6 i2c: muxes: mule: Fix an error handling path in mule_i2c_mux_probe()
[ Upstream commit 33ac515589 ]

If an error occurs in the loop that creates the device adapters, then a
reference to 'dev' still needs to be released.

Use for_each_child_of_node_scoped() to both fix the issue and save one line
of code.

Fixes: d0f8e97866 ("i2c: muxes: add support for tsd,mule-i2c multiplexer")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:14:02 +02:00
..
i2c-arb-gpio-challenge.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-demux-pinctrl.c i2c: mux: demux-pinctrl: check initial mux selection, too 2025-01-23 17:22:54 +01:00
i2c-mux-gpio.c i2c: mux: gpio: Add support for the 'settle-time-us' property 2024-07-20 03:07:55 +02:00
i2c-mux-gpmux.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-mux-ltc4306.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-mux-mlxcpld.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-mux-mule.c i2c: muxes: mule: Fix an error handling path in mule_i2c_mux_probe() 2025-08-15 12:14:02 +02:00
i2c-mux-pca954x.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-mux-pca9541.c i2c: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-06-26 12:45:25 +02:00
i2c-mux-pinctrl.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
i2c-mux-reg.c i2c: mux: Remove class argument from i2c_mux_add_adapter() 2024-05-13 16:13:19 +02:00
Kconfig i2c: muxes: add support for tsd,mule-i2c multiplexer 2024-09-10 00:36:47 +02:00
Makefile i2c: muxes: add support for tsd,mule-i2c multiplexer 2024-09-10 00:36:47 +02:00