Skip to contentSkip to conversation

dmaengine: idma: remove dma_slave_config direction usage

PATCH New Andy Shevchenko 1 participant 1 message Sep 21, 2018 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 8/12 dmaengine: idma: remove dma_slave_config direction usage

Quoted 4 lines · Vinod Koul

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

Quoted 25 lines

---
CC: Andy Shevchenko <[email protected]>

 drivers/dma/idma64.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/dma/idma64.c +0 -4
index 1fbf9cb9b742..40dc5d2ddf3d 100644
@@ -408,10 +408,6 @@ static int idma64_slave_config(struct dma_chan *chan,
 {
 	struct idma64_chan *idma64c = to_idma64_chan(chan);
 
-	/* Check if chan will be configured for slave transfers */
-	if (!is_slave_direction(config->direction))
-		return -EINVAL;
-
 	memcpy(&idma64c->config, config, sizeof(idma64c->config));
 
 	convert_burst(&idma64c->config.src_maxburst);
Signature · 1 line
2.14.4