Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: coldfire-qspi: Use clk_disable_unprepare in the remove function

'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>

authored by

Christophe JAILLET and committed by
Mark Brown
d68f4c73 ed14666c

+1 -1
+1 -1
drivers/spi/spi-coldfire-qspi.c
··· 444 444 mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR); 445 445 446 446 mcfqspi_cs_teardown(mcfqspi); 447 - clk_disable(mcfqspi->clk); 447 + clk_disable_unprepare(mcfqspi->clk); 448 448 449 449 return 0; 450 450 }