]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mt7621: fix missing clk_disable_unprepare() on error in mtk_i2c_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 14 May 2022 02:31:47 +0000 (10:31 +0800)
committerWolfram Sang <wsa@kernel.org>
Sat, 21 May 2022 10:10:56 +0000 (12:10 +0200)
commita2537c98a8a3b57002e54a262d180b9490bc7190
tree66ef0410f8a5e532f294e458e8b62dca07587c23
parent42226c989789d8da4af1de0c31070c96726d990c
i2c: mt7621: fix missing clk_disable_unprepare() on error in mtk_i2c_probe()

Fix the missing clk_disable_unprepare() before return
from mtk_i2c_probe() in the error handling case.

Fixes: d04913ec5f89 ("i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt7621.c