summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_sai.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl/fsl_sai.c')
-rw-r--r--sound/soc/fsl/fsl_sai.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 0991e24fa45f..d3daa0239ec4 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1492,10 +1492,8 @@ static int fsl_sai_probe(struct platform_device *pdev)
}
platform_set_drvdata(pdev, sai);
-
- ret = clk_prepare_enable(sai->bus_clk);
- if (ret)
- return ret;
+ pm_runtime_enable(&pdev->dev);
+ pm_runtime_get_sync(&pdev->dev);
ret = fsl_sai_check_ver(&pdev->dev);
if (ret < 0)
@@ -1542,7 +1540,7 @@ static int fsl_sai_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "fail to create sys group\n");
}
- clk_disable_unprepare(sai->bus_clk);
+ pm_runtime_put_sync(&pdev->dev);
sai->dma_params_rx.chan_name = "rx";
sai->dma_params_tx.chan_name = "tx";
@@ -1553,8 +1551,6 @@ static int fsl_sai_probe(struct platform_device *pdev)
sai->pinctrl = devm_pinctrl_get(&pdev->dev);
- pm_runtime_enable(&pdev->dev);
-
regcache_cache_only(sai->regmap, true);
ret = devm_snd_soc_register_component(&pdev->dev, &fsl_component,