dmaengine: sprd: remove dma_slave_config direction usage
Subsystems (2)
Vinod Koul
maintainerPATCH 2/5 dmaengine: sprd: remove dma_slave_config direction usage
dma_slave_config direction was marked as deprecated quite some time back, remove the usage from this driver so that the field can be removed
Signed-off-by Vinod Koul <[email protected]>
--- drivers/dma/sprd-dma.c | 3 --- 1 file changed, 3 deletions(-)
drivers/dma/sprd-dma.c +0 -3
@@ -847,9 +847,6 @@ static int sprd_dma_slave_config(struct dma_chan *chan,struct sprd_dma_chn *schan =to_sprd_dma_chan (chan);struct dma_slave_config *slave_cfg = &schan->slave_cfg; -if (!is_slave_direction (config->direction)) -return -EINVAL ; -memcpy (slave_cfg, config,sizeof (*config));return 0 ; }