platform: imx: Do not perform early get/init of the DAI

It isn't necessary to do a dai_get this early for the ESAI; the SAI
doesn't even have one.

Calling dai_probe() after dai_get() is pointless since dai_probe() was
already called from a previous dai_get() with CREAT flag (in particular
the one which incremented sref from 0 to 1).

Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
Paul Olaru 2019-11-07 15:17:22 +02:00 committed by Daniel Baluta
parent a366d378ba
commit 73a70eddac
1 changed files with 0 additions and 7 deletions

View File

@ -141,7 +141,6 @@ int platform_boot_complete(uint32_t boot_message)
int platform_init(struct sof *sof)
{
int ret;
struct dai *esai;
platform_interrupt_init();
clock_init();
@ -179,11 +178,5 @@ int platform_init(struct sof *sof)
if (ret < 0)
return -ENODEV;
esai = dai_get(SOF_DAI_IMX_ESAI, 0, DAI_CREAT);
if (!esai)
return -ENODEV;
dai_probe(esai);
return 0;
}