diff --git a/sound/soc/fsl/fsl_dai.c b/sound/soc/fsl/fsl_dai.c index 4bcb242a4989..00ded06d7c2d 100644 --- a/sound/soc/fsl/fsl_dai.c +++ b/sound/soc/fsl/fsl_dai.c @@ -194,6 +194,10 @@ static int fsl_dai_probe(struct platform_device *pdev) done_pm: pm_runtime_enable(&pdev->dev); + pm_runtime_set_autosuspend_delay(&pdev->dev, 3000); + pm_runtime_use_autosuspend(&pdev->dev); + + pm_runtime_get_sync(&pdev->dev); ret = devm_snd_soc_register_component(&pdev->dev, &fsl_dai_component, &fsl_dai, 1); @@ -201,6 +205,10 @@ done_pm: dev_err(&pdev->dev, "Failed to register DAI ret = %d\n", ret); return ret; } + + pm_runtime_mark_last_busy(&pdev->dev); + pm_runtime_put_autosuspend(&pdev->dev); + return 0; unroll_pm: