mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
spi: s3c64xx: check return code of dmaengine_slave_config()
Check the return code of dmaengine_slave_config(). Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org> Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/r/20240207120431.2766269-11-tudor.ambarus@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5d7f4f4367
commit
e9c49effde
1 changed files with 3 additions and 1 deletions
|
@ -303,7 +303,9 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma,
|
|||
config.dst_maxburst = 1;
|
||||
}
|
||||
config.direction = dma->direction;
|
||||
dmaengine_slave_config(dma->ch, &config);
|
||||
ret = dmaengine_slave_config(dma->ch, &config);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents,
|
||||
dma->direction, DMA_PREP_INTERRUPT);
|
||||
|
|
Loading…
Reference in a new issue