projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8570043
)
spi: cadence: Fix missing clk_disable_unprepare() on error in cnds_runtime_resume()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 11 Jul 2018 13:18:59 +0000
(13:18 +0000)
committer
Mark Brown
<broonie@kernel.org>
Wed, 11 Jul 2018 14:34:53 +0000
(15:34 +0100)
Fix the missing clk_disable_unprepare() before return
from cnds_runtime_resume() in the error handling case.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-cadence.c
b/drivers/spi/spi-cadence.c
index a568f35522f9f8373f027668e2087556832377a2..7c88f74f7f4701a68091fef91c4ad785cd55179a 100644
(file)
--- a/
drivers/spi/spi-cadence.c
+++ b/
drivers/spi/spi-cadence.c
@@
-739,7
+739,7
@@
static int __maybe_unused cnds_runtime_resume(struct device *dev)
ret = clk_prepare_enable(xspi->ref_clk);
if (ret) {
dev_err(dev, "Cannot enable device clock.\n");
- clk_disable(xspi->pclk);
+ clk_disable
_unprepare
(xspi->pclk);
return ret;
}
return 0;