Skip to contentSkip to conversation

dmaengine: bcm2835: remove dma_slave_config direction usage

PATCH Superseded Vinod Koul 1 participant 1 message Sep 11, 2018

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 2/12 dmaengine: bcm2835: 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

---
CC: Ray Jui <[email protected]>
CC: Scott Branden <[email protected]>

 drivers/dma/bcm2835-dma.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/dma/bcm2835-dma.c +0 -8
index 847f84a41a69..cad55ab80d41 100644
@@ -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;