diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-05-22 14:22:07 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-06-14 22:11:54 +0200 |
commit | de87b603b0919e31578c8fa312a3541f1fb37e1c (patch) | |
tree | d6ea71426affa3a560d64599ca9149e14fa95a38 /.clang-format | |
parent | 27071b5cbca59d8e8f8750c199a6cbf8c9799963 (diff) | |
download | linux-de87b603b0919e31578c8fa312a3541f1fb37e1c.tar.bz2 |
i2c: mediatek: Fix an error handling path in mtk_i2c_probe()
The clsk are prepared, enabled, then disabled. So if an error occurs after
the disable step, they are still prepared.
Add an error handling path to unprepare the clks in such a case, as already
done in the .remove function.
Fixes: 8b4fc246c3ff ("i2c: mediatek: Optimize master_xfer() and avoid circular locking")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions