dmaengine: bcm2835: remove dma_slave_config direction usage
authorVinod Koul <vkoul@kernel.org>
Thu, 19 Jul 2018 16:52:26 +0000 (22:22 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 7 Oct 2018 13:48:16 +0000 (19:18 +0530)
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

Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/bcm2835-dma.c

index 847f84a41a692b48a653745052a4d222b262f18d..cad55ab80d4173b46eae922a713179fafa28cc01 100644 (file)
@@ -778,14 +778,6 @@ static int bcm2835_dma_slave_config(struct dma_chan *chan,
 {
        struct bcm2835_chan *c = to_bcm2835_dma_chan(chan);
 
-       if ((cfg->direction == DMA_DEV_TO_MEM &&
-            cfg->src_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
-           (cfg->direction == DMA_MEM_TO_DEV &&
-            cfg->dst_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) ||
-           !is_slave_direction(cfg->direction)) {
-               return -EINVAL;
-       }
-
        c->cfg = *cfg;
 
        return 0;