Skip to contentSkip to conversation

driver:spi: change clk_disable_unprepare to clk_unprepare

PATCH In review Dongliang Mu 2 participants 2 messages Dec 6, 2021 – Jan 26, 2022 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver:spi: change clk_disable_unprepare to clk_unprepare

The corresponding API for clk_prepare is clk_unprepare, other than clk_disable_unprepare.

Fix this by changing clk_disable_unprepare to clk_unprepare.

Fixes 5762ab71eb24 ("spi: Add support for Armada 3700 SPI Controller")
---
 drivers/spi/spi-armada-3700.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-armada-3700.c +1 -1
index 46feafe4e201..d8cc4b270644 100644
@@ -901,7 +901,7 @@ static int a3700_spi_probe(struct platform_device *pdev)
 	return 0;
 
 error_clk:
-	clk_disable_unprepare(spi->clk);
+	clk_unprepare(spi->clk);
 error:
 	spi_master_put(master);
 out:
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 6 lines · Dongliang Mu

The corresponding API for clk_prepare is clk_unprepare, other than clk_disable_unprepare.

Fix this by changing clk_disable_unprepare to clk_unprepare.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-linus

Thanks!

[1/1] driver:spi: change clk_disable_unprepare to clk_unprepare

      commit: 90cafce461de108bfb07c06148395dc86c3fcd23

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark