diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2018-11-06 13:01:31 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-12-05 14:27:11 +0530 |
commit | a0ecabf503413446f08deb8f7226b6135cf922b0 (patch) | |
tree | 082c4171ea30f9ea2e4150f58e028f5af9affa12 /drivers | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-a0ecabf503413446f08deb8f7226b6135cf922b0.tar.bz2 |
dmaengine: sprd: Remove direction usage from struct dma_slave_config
The direction field of struct dma_slave_config was marked deprecated,
thus remove the usage.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/sprd-dma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f07c66..c226dc93e401 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -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; } |