dmaengine: dw: 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:50:32 +0000 (19:20 +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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw/core.c

index f43e6dafe446d47dc906137b3fe9733fef1182f4..d0c3e50b39fbd8ab5f15583113ab0b090af2da70 100644 (file)
@@ -886,12 +886,7 @@ static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig)
         */
        u32 s = dw->pdata->is_idma32 ? 1 : 2;
 
-       /* Check if chan will be configured for slave transfers */
-       if (!is_slave_direction(sconfig->direction))
-               return -EINVAL;
-
        memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig));
-       dwc->direction = sconfig->direction;
 
        sc->src_maxburst = sc->src_maxburst > 1 ? fls(sc->src_maxburst) - s : 0;
        sc->dst_maxburst = sc->dst_maxburst > 1 ? fls(sc->dst_maxburst) - s : 0;