diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-18 22:55:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-15 09:50:29 +0200 |
commit | f1f6d3d2ada818be13bda3e76883714b5b8ead44 (patch) | |
tree | 333cfe735387b19ee8de9106ceccc6d40dedba56 /drivers/spi | |
parent | 4b21d4e820bb9a1415ec76dfe565e4c5937337dd (diff) | |
download | linux-stable-f1f6d3d2ada818be13bda3e76883714b5b8ead44.tar.gz linux-stable-f1f6d3d2ada818be13bda3e76883714b5b8ead44.tar.bz2 linux-stable-f1f6d3d2ada818be13bda3e76883714b5b8ead44.zip |
spi: coldfire-qspi: Use clk_disable_unprepare in the remove function
[ Upstream commit d68f4c73d729245a47e70eb216fa24bc174ed2e2 ]
'clk_prepare_enable()' is used in the probe, so 'clk_disable_unprepare()'
should be used in the remove function to be consistent.
Fixes: 499de01c5c0b ("spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/ee91792ddba61342b0d3284cd4558a2b0016c4e7.1629319838.git.christophe.jaillet@wanadoo.fr
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-coldfire-qspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index 8996115ce736..263ce9047327 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c @@ -444,7 +444,7 @@ static int mcfqspi_remove(struct platform_device *pdev) mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR); mcfqspi_cs_teardown(mcfqspi); - clk_disable(mcfqspi->clk); + clk_disable_unprepare(mcfqspi->clk); return 0; } |