Commit 2ba87a9b authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown

spi: cadence: Fix missing clk_disable_unprepare() on error in cnds_runtime_resume()

Fix the missing clk_disable_unprepare() before return
from cnds_runtime_resume() in the error handling case.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8570043e
...@@ -739,7 +739,7 @@ static int __maybe_unused cnds_runtime_resume(struct device *dev) ...@@ -739,7 +739,7 @@ static int __maybe_unused cnds_runtime_resume(struct device *dev)
ret = clk_prepare_enable(xspi->ref_clk); ret = clk_prepare_enable(xspi->ref_clk);
if (ret) { if (ret) {
dev_err(dev, "Cannot enable device clock.\n"); dev_err(dev, "Cannot enable device clock.\n");
clk_disable(xspi->pclk); clk_disable_unprepare(xspi->pclk);
return ret; return ret;
} }
return 0; return 0;
......
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