We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e84cdd commit 499de01Copy full SHA for 499de01
drivers/spi/spi-coldfire-qspi.c
@@ -387,7 +387,7 @@ static int mcfqspi_probe(struct platform_device *pdev)
387
status = PTR_ERR(mcfqspi->clk);
388
goto fail0;
389
}
390
- clk_enable(mcfqspi->clk);
+ clk_prepare_enable(mcfqspi->clk);
391
392
master->bus_num = pdata->bus_num;
393
master->num_chipselect = pdata->num_chipselect;
@@ -425,7 +425,7 @@ static int mcfqspi_probe(struct platform_device *pdev)
425
pm_runtime_disable(&pdev->dev);
426
mcfqspi_cs_teardown(mcfqspi);
427
fail1:
428
- clk_disable(mcfqspi->clk);
+ clk_disable_unprepare(mcfqspi->clk);
429
fail0:
430
spi_master_put(master);
431
0 commit comments