Skip to content

Commit d68f4c7

Browse files
tititiou36broonie
authored andcommitted
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: 499de01 ("spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare") Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/ee91792ddba61342b0d3284cd4558a2b0016c4e7.1629319838.git.christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown <[email protected]>
1 parent ed14666 commit d68f4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-coldfire-qspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ static int mcfqspi_remove(struct platform_device *pdev)
444444
mcfqspi_wr_qmr(mcfqspi, MCFQSPI_QMR_MSTR);
445445

446446
mcfqspi_cs_teardown(mcfqspi);
447-
clk_disable(mcfqspi->clk);
447+
clk_disable_unprepare(mcfqspi->clk);
448448

449449
return 0;
450450
}

0 commit comments

Comments
 (0)