i2c: omap: Fix an error handling path in omap_i2c_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 14 Jun 2025 14:59:26 +0000 (16:59 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Wed, 25 Jun 2025 22:07:33 +0000 (00:07 +0200)
commit666c23af755dccca8c25b5d5200ca28153c69a05
tree0cc03e08a35f8f16ce0294d703c024c122129921
parent577c1e0ef351e41aba764816232a9feb7a9b3969
i2c: omap: Fix an error handling path in omap_i2c_probe()

If an error occurs after calling mux_state_select(), mux_state_deselect()
should be called as already done in the remove function.

Fixes: b6ef830c60b6 ("i2c: omap: Add support for setting mux")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: <stable@vger.kernel.org> # v6.15+
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/998542981b6d2435c057dd8b9fe71743927babab.1749913149.git.christophe.jaillet@wanadoo.fr
drivers/i2c/busses/i2c-omap.c