diff options
author | 2024-01-06 13:48:24 +0100 | |
---|---|---|
committer | 2024-05-06 10:58:04 +0200 | |
commit | 55750148e5595bb85605e8fbb40b2759c2c4c2d7 (patch) | |
tree | bd057ae165b6d19dca6c745da98fb1250d458f19 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | i2c: cadence: Avoid fifo clear after start (diff) | |
download | wireguard-linux-55750148e5595bb85605e8fbb40b2759c2c4c2d7.tar.xz wireguard-linux-55750148e5595bb85605e8fbb40b2759c2c4c2d7.zip |
i2c: synquacer: Fix an error handling path in synquacer_i2c_probe()
If an error occurs after the clk_prepare_enable() call, it should be undone
by a corresponding clk_disable_unprepare() call, as already done in the
remove() function.
As devm_clk_get() is used, we can switch to devm_clk_get_enabled() to
handle it automatically and fix the probe.
Update the remove() function accordingly and remove the now useless
clk_disable_unprepare() call.
Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions