diff options
author | Guo Mengqi <guomengqi3@huawei.com> | 2022-06-24 08:56:14 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-27 23:26:53 +0100 |
commit | 917e43de2a56d9b82576f1cc94748261f1988458 (patch) | |
tree | caa4abfe76ff9fe54d74107848df93f096b7d9fa /drivers/spi/spi-synquacer.c | |
parent | 145cfc3840e5931a789a8e2e76af841ab4cad44b (diff) |
spi: synquacer: Add missing clk_disable_unprepare()
Add missing clk_disable_unprepare() in synquacer_spi_resume().
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Guo Mengqi <guomengqi3@huawei.com>
Link: https://lore.kernel.org/r/20220624005614.49434-1-guomengqi3@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-synquacer.c')
-rw-r--r-- | drivers/spi/spi-synquacer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index ea706d9629cb..47cbe73137c2 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -783,6 +783,7 @@ static int __maybe_unused synquacer_spi_resume(struct device *dev) ret = synquacer_spi_enable(master); if (ret) { + clk_disable_unprepare(sspi->clk); dev_err(dev, "failed to enable spi (%d)\n", ret); return ret; } |