From: Baolin Wang Date: Tue, 6 Nov 2018 05:01:31 +0000 (+0800) Subject: dmaengine: sprd: Remove direction usage from struct dma_slave_config X-Git-Tag: v5.4-rc1~1897^2~2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0ecabf503413446f08deb8f7226b6135cf922b0;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f..c226dc93 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; }