summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2018-11-06 06:01:31 +0100
committerVinod Koul <vkoul@kernel.org>2018-12-05 09:57:11 +0100
commita0ecabf503413446f08deb8f7226b6135cf922b0 (patch)
tree082c4171ea30f9ea2e4150f58e028f5af9affa12 /drivers/dma
parentLinux 4.20-rc1 (diff)
downloadlinux-a0ecabf503413446f08deb8f7226b6135cf922b0.tar.xz
linux-a0ecabf503413446f08deb8f7226b6135cf922b0.zip
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/dma')
-rw-r--r--drivers/dma/sprd-dma.c3
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;
}