Skip to content

Commit 37228af

Browse files
arndbvinodkoul
authored andcommitted
dmaengine: shdma: remove legacy slave_id parsing
The slave device is picked through either devicetree or a filter function, and any remaining out-of-tree drivers would have warned about this usage since 2015. Stop interpreting the field finally so it can be removed from the interface. Reviewed-by: Laurent Pinchart <[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 f59f6aa commit 37228af

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/dma/sh/shdma-base.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -786,14 +786,6 @@ static int shdma_config(struct dma_chan *chan,
786786
if (!config)
787787
return -EINVAL;
788788

789-
/*
790-
* overriding the slave_id through dma_slave_config is deprecated,
791-
* but possibly some out-of-tree drivers still do it.
792-
*/
793-
if (WARN_ON_ONCE(config->slave_id &&
794-
config->slave_id != schan->real_slave_id))
795-
schan->real_slave_id = config->slave_id;
796-
797789
/*
798790
* We could lock this, but you shouldn't be configuring the
799791
* channel, while using it...

0 commit comments

Comments
 (0)