]> git.baikalelectronics.ru Git - kernel.git/commit
spi: qup: add missing clk_disable_unprepare on error in spi_qup_pm_resume_runtime()
authorXu Qiang <xuqiang36@huawei.com>
Thu, 25 Aug 2022 06:53:24 +0000 (06:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:23 +0000 (13:22 +0200)
commitd8a692fd9e59de751c66f9ecb7f59f57a4a0bc8e
treeba348bd9f66353efdab9cca470b68b4fe28cb661
parenta54c9e6caf82da04255a27691bd018f9169ba388
spi: qup: add missing clk_disable_unprepare on error in spi_qup_pm_resume_runtime()

[ Upstream commit 2d74f03a6db11611b4ce37c38cc1a1ec1c23624e ]

Add the missing clk_disable_unprepare() before return
from spi_qup_pm_resume_runtime() in the error handling case.

Fixes: 32afbc10833a (“spi: qup: Handle clocks in pm_runtime suspend and resume”)
Signed-off-by: Xu Qiang <xuqiang36@huawei.com>
Link: https://lore.kernel.org/r/20220825065324.68446-2-xuqiang36@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-qup.c