提交 ddfc6d67 编写于 作者: D Dongliang Mu 提交者: Zheng Zengkai

spi: change clk_disable_unprepare to clk_unprepare

stable inclusion
from stable-v5.10.89
commit 580ecf86e7720aa5e123009b390e47a7ebd6bde7
bugzilla: 186140 https://gitee.com/openeuler/kernel/issues/I4S8HA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=580ecf86e7720aa5e123009b390e47a7ebd6bde7

--------------------------------

[ Upstream commit db6689b6 ]

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: 5762ab71 ("spi: Add support for Armada 3700 SPI Controller")
Signed-off-by: NDongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20211206101931.2816597-1-mudongliangabcd@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 361df66c
...@@ -901,7 +901,7 @@ static int a3700_spi_probe(struct platform_device *pdev) ...@@ -901,7 +901,7 @@ static int a3700_spi_probe(struct platform_device *pdev)
return 0; return 0;
error_clk: error_clk:
clk_disable_unprepare(spi->clk); clk_unprepare(spi->clk);
error: error:
spi_master_put(master); spi_master_put(master);
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册