From: Arnd Bergmann Date: Mon, 22 Nov 2021 22:21:59 +0000 (+0100) Subject: dmaengine: sprd: stop referencing config->slave_id X-Git-Tag: v5.17-rc1~45^2~28^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=722d6d2bdcc2dcff5527c704fb8f2bbcb018a232;p=thirdparty%2Fkernel%2Flinux.git dmaengine: sprd: stop referencing config->slave_id It appears that the code that reads the slave_id from the channel config was copied incorrectly from other drivers. Nothing ever sets this field on platforms that use this driver, so remove the reference. Reviewed-by: Baolin Wang Signed-off-by: Arnd Bergmann Acked-by: Mark Brown Link: https://lore.kernel.org/r/20211122222203.4103644-8-arnd@kernel.org Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 4357d2395e6b7..7f158ef5672d7 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -795,9 +795,6 @@ static int sprd_dma_fill_desc(struct dma_chan *chan, return dst_datawidth; } - if (slave_cfg->slave_id) - schan->dev_id = slave_cfg->slave_id; - hw->cfg = SPRD_DMA_DONOT_WAIT_BDONE << SPRD_DMA_WAIT_BDONE_OFFSET; /*