From d8a6d8fcccd33827827d4441e7a8ce8e7bd5920f Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 26 Mar 2019 17:43:22 +0100 Subject: [PATCH] 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 --- src/drivers/dw/ssi-spi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/drivers/dw/ssi-spi.c b/src/drivers/dw/ssi-spi.c index d20699b9f..038375251 100644 --- a/src/drivers/dw/ssi-spi.c +++ b/src/drivers/dw/ssi-spi.c @@ -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)