summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorDongliang Mu <mudongliangabcd@gmail.com>2021-12-06 11:19:31 +0100
committerMark Brown <broonie@kernel.org>2021-12-06 14:49:40 +0100
commitdb6689b643d8653092f5853751ea2cdbc299f8d3 (patch)
treef247018928ed0b5a7c891ca0bceba30f0429ec6e /drivers/spi
parentspi: spi-rockchip: Add rk3568-spi compatible (diff)
downloadlinux-db6689b643d8653092f5853751ea2cdbc299f8d3.tar.xz
linux-db6689b643d8653092f5853751ea2cdbc299f8d3.zip
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") Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Link: https://lore.kernel.org/r/20211206101931.2816597-1-mudongliangabcd@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-armada-3700.c2
1 files changed, 1 insertions, 1 deletions
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: