dmaengine: hsu: 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:55:09 +0000 (19:25 +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/hsu/hsu.c

index 202ffa9f7611c6f5560187c4ab084d461a6713b5..e06f20272fd753d46cbcf8e2d512cb3948c1162b 100644 (file)
@@ -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;