ssi-spi: fix a regression, caused by a scheduler-update

After a recent scheduler update the API has changed: now it requires
task's private pointer to be NULL before calling schedule_task_init()

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2019-03-26 17:43:22 +01:00 committed by Liam Girdwood
parent 9890d2b782
commit d8a6d8fccc
1 changed files with 3 additions and 4 deletions

View File

@ -428,10 +428,9 @@ static int spi_slave_init(struct spi *spi)
config->dir = SPI_DIR_TX;
config->src_buf = spi->tx_buffer;
schedule_task_init(&spi->completion, SOF_SCHEDULE_EDF, SOF_TASK_PRI_MED,
spi_completion_work, spi, 0, 0);
return 0;
spi->completion.private = NULL;
return schedule_task_init(&spi->completion, SOF_SCHEDULE_EDF,
SOF_TASK_PRI_MED, spi_completion_work, spi, 0, 0);
}
int spi_probe(struct spi *spi)