]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
spi: change clk_disable_unprepare to clk_unprepare
authorDongliang Mu <mudongliangabcd@gmail.com>
Mon, 6 Dec 2021 10:19:31 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:20:43 +0000 (12:20 +0100)
[ 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>
drivers/spi/spi-armada-3700.c

index 7dcb14d303eb407daa8cbb95c4b18e521e740cd7..d8715954f4e080408c1ec1674329e0bf17464a46 100644 (file)
@@ -912,7 +912,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: