]> git.itanic.dy.fi Git - linux-stable/commit
i2c: wmt: Fix an error handling path in wmt_i2c_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 5 Jan 2024 14:39:35 +0000 (15:39 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 8 Mar 2024 09:10:26 +0000 (10:10 +0100)
commit97fd62e3269d2d47cefd421ffe144f9eafab8315
treecb7e90d1d1fce614129ba98009391b89515cb8d0
parentceb013b2d9a2946035de5e1827624edc85ae9484
i2c: wmt: Fix an error handling path in wmt_i2c_probe()

wmt_i2c_reset_hardware() calls clk_prepare_enable(). So, should an error
occur after it, it should be undone by a corresponding
clk_disable_unprepare() call, as already done in the remove function.

Fixes: 560746eb79d3 ("i2c: vt8500: Add support for I2C bus on Wondermedia SoCs")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-wmt.c