summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorDongliang Mu <mudongliangabcd@gmail.com>2021-12-06 18:19:31 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-29 12:23:34 +0100
commit78874bca4f271d96cf66bba49a4bc796e780ce89 (patch)
tree50d20abe5d3f81a066685e678c9a02da68c380f0 /drivers/spi
parent0c0ac2547c873d2342f60db3a40545f6b3f6d519 (diff)
downloadlinux-stable-78874bca4f271d96cf66bba49a4bc796e780ce89.tar.gz
linux-stable-78874bca4f271d96cf66bba49a4bc796e780ce89.tar.bz2
linux-stable-78874bca4f271d96cf66bba49a4bc796e780ce89.zip
spi: change clk_disable_unprepare to clk_unprepare
[ Upstream commit db6689b643d8653092f5853751ea2cdbc299f8d3 ] 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> Signed-off-by: Sasha Levin <sashal@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 e450ee17787f..4a4e2877414a 100644
--- a/drivers/spi/spi-armada-3700.c
+++ b/drivers/spi/spi-armada-3700.c
@@ -906,7 +906,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: