Skip to content

Commit 499de01

Browse files
zhangqingmybroonie
authored andcommitted
spi: coldfire-qspi: Use clk_prepare_enable and clk_disable_unprepare
Convert clk_enable() to clk_prepare_enable() and clk_disable() to clk_disable_unprepare() respectively in the spi-coldfire-qspi.c. Signed-off-by: Qing Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3e84cdd commit 499de01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-coldfire-qspi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int mcfqspi_probe(struct platform_device *pdev)
387387
status = PTR_ERR(mcfqspi->clk);
388388
goto fail0;
389389
}
390-
clk_enable(mcfqspi->clk);
390+
clk_prepare_enable(mcfqspi->clk);
391391

392392
master->bus_num = pdata->bus_num;
393393
master->num_chipselect = pdata->num_chipselect;
@@ -425,7 +425,7 @@ static int mcfqspi_probe(struct platform_device *pdev)
425425
pm_runtime_disable(&pdev->dev);
426426
mcfqspi_cs_teardown(mcfqspi);
427427
fail1:
428-
clk_disable(mcfqspi->clk);
428+
clk_disable_unprepare(mcfqspi->clk);
429429
fail0:
430430
spi_master_put(master);
431431

0 commit comments

Comments
 (0)