linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] driver:spi: change clk_disable_unprepare to clk_unprepare
@ 2021-12-06 10:19 Dongliang Mu
  2022-01-26 15:36 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Dongliang Mu @ 2021-12-06 10:19 UTC (permalink / raw)
  To: Mark Brown, Romain Perier; +Cc: Dongliang Mu, linux-spi, linux-kernel

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")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
---
 drivers/spi/spi-armada-3700.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c
index 46feafe4e201..d8cc4b270644 100644
--- a/drivers/spi/spi-armada-3700.c
+++ b/drivers/spi/spi-armada-3700.c
@@ -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:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] driver:spi: change clk_disable_unprepare to clk_unprepare
  2021-12-06 10:19 [PATCH] driver:spi: change clk_disable_unprepare to clk_unprepare Dongliang Mu
@ 2022-01-26 15:36 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-01-26 15:36 UTC (permalink / raw)
  To: Romain Perier, Dongliang Mu; +Cc: linux-kernel, linux-spi

On Mon, 6 Dec 2021 18:19:31 +0800, Dongliang Mu wrote:
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-26 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-06 10:19 [PATCH] driver:spi: change clk_disable_unprepare to clk_unprepare Dongliang Mu
2022-01-26 15:36 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).