Skip to contentSkip to conversation

dmaengine: hsu: 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 7/12 dmaengine: hsu: 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/hsu/hsu.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/dma/hsu/hsu.c +0 -4
index 202ffa9f7611..e06f20272fd7 100644
@@ -348,10 +348,6 @@ static int hsu_dma_slave_config(struct dma_chan *chan,
 {
 	struct hsu_dma_chan *hsuc = to_hsu_dma_chan(chan);
 
-	/* Check if chan will be configured for slave transfers */
-	if (!is_slave_direction(config->direction))
-		return -EINVAL;
-
 	memcpy(&hsuc->config, config, sizeof(hsuc->config));
 
 	return 0;
Signature · 1 line
2.14.4