Commit 9ba48db9 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Andi Shyti

i2c: qcom-geni: Add missing geni_icc_disable in geni_i2c_runtime_resume

Add the missing geni_icc_disable() before return in
geni_i2c_runtime_resume().

Fixes: bf225ed3 ("i2c: i2c-qcom-geni: Add interconnect support")
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: default avatarVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent b93d16be
...@@ -992,6 +992,7 @@ static int __maybe_unused geni_i2c_runtime_resume(struct device *dev) ...@@ -992,6 +992,7 @@ static int __maybe_unused geni_i2c_runtime_resume(struct device *dev)
ret = geni_se_resources_on(&gi2c->se); ret = geni_se_resources_on(&gi2c->se);
if (ret) { if (ret) {
clk_disable_unprepare(gi2c->core_clk); clk_disable_unprepare(gi2c->core_clk);
geni_icc_disable(&gi2c->se);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment