ASoC: fsl_sai: Use dev_err_probe

This helps figuring out why the device probe is deferred, e.g. missing
FSL_EDMA driver.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20230111161144.3275546-1-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Alexander Stein 2023-01-11 17:11:44 +01:00 коммит произвёл Mark Brown
Родитель a23924b7dd
Коммит aea11bcddc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1459,15 +1459,18 @@ static int fsl_sai_probe(struct platform_device *pdev)
if (sai->soc_data->use_imx_pcm) { if (sai->soc_data->use_imx_pcm) {
ret = imx_pcm_dma_init(pdev); ret = imx_pcm_dma_init(pdev);
if (ret) { if (ret) {
dev_err_probe(dev, ret, "PCM DMA init failed\n");
if (!IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_DMA)) if (!IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_DMA))
dev_err(dev, "Error: You must enable the imx-pcm-dma support!\n"); dev_err(dev, "Error: You must enable the imx-pcm-dma support!\n");
goto err_pm_get_sync; goto err_pm_get_sync;
} }
} else { } else {
ret = devm_snd_dmaengine_pcm_register(dev, NULL, 0); ret = devm_snd_dmaengine_pcm_register(dev, NULL, 0);
if (ret) if (ret) {
dev_err_probe(dev, ret, "Registering PCM dmaengine failed\n");
goto err_pm_get_sync; goto err_pm_get_sync;
} }
}
ret = devm_snd_soc_register_component(dev, &fsl_component, ret = devm_snd_soc_register_component(dev, &fsl_component,
&sai->cpu_dai_drv, 1); &sai->cpu_dai_drv, 1);