]> git.itanic.dy.fi Git - linux-stable/commit
i2c: mux: gpio: Add missing fwnode_handle_put()
authorLiang He <windhl@126.com>
Wed, 22 Mar 2023 04:29:51 +0000 (12:29 +0800)
committerWolfram Sang <wsa@kernel.org>
Thu, 21 Sep 2023 08:48:03 +0000 (10:48 +0200)
commitdb6aee6083a56ac4a6cd1b08fff7938072bcd0a3
tree0b60b098236fb20f8d8fc903a5635464ca399804
parent7c0195fa9a9e263df204963f88a22b21688ffb66
i2c: mux: gpio: Add missing fwnode_handle_put()

In i2c_mux_gpio_probe_fw(), we should add fwnode_handle_put()
when break out of the iteration device_for_each_child_node()
as it will automatically increase and decrease the refcounter.

Fixes: 98b2b712bc85 ("i2c: i2c-mux-gpio: Enable this driver in ACPI land")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/muxes/i2c-mux-gpio.c