Skip to content

Commit 722d6d2

Browse files
arndbvinodkoul
authored andcommitted
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 <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 134c37f commit 722d6d2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/dma/sprd-dma.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,6 @@ static int sprd_dma_fill_desc(struct dma_chan *chan,
795795
return dst_datawidth;
796796
}
797797

798-
if (slave_cfg->slave_id)
799-
schan->dev_id = slave_cfg->slave_id;
800-
801798
hw->cfg = SPRD_DMA_DONOT_WAIT_BDONE << SPRD_DMA_WAIT_BDONE_OFFSET;
802799

803800
/*

0 commit comments

Comments
 (0)