Skip to content

Commit

Permalink
spi: synquacer: Add missing clk_disable_unprepare()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guo Mengqi authored and Mark Brown committed Jun 27, 2022
1 parent 145cfc3 commit 917e43d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-synquacer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 917e43d

Please sign in to comment.