mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-12 04:15:21 +02:00
i2c: qcom-geni: Add missing clk_disable_unprepare in geni_i2c_runtime_resume
[ Upstream commitb93d16bee5
] Add the missing clk_disable_unprepare() before return in geni_i2c_runtime_resume(). Fixes:14d02fbadb
("i2c: qcom-geni: add desc struct to prepare support for I2C Master Hub variant") Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a4155dec01
commit
233419a329
|
@ -991,8 +991,10 @@ static int __maybe_unused geni_i2c_runtime_resume(struct device *dev)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = geni_se_resources_on(&gi2c->se);
|
ret = geni_se_resources_on(&gi2c->se);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
clk_disable_unprepare(gi2c->core_clk);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
enable_irq(gi2c->irq);
|
enable_irq(gi2c->irq);
|
||||||
gi2c->suspended = 0;
|
gi2c->suspended = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user