dmaengine: idma: 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/idma64.c

index 1fbf9cb9b74297c9daa6005c520fa54f90c8dc45..40dc5d2ddf3dc05ba9d6853ee14ec9e2739358f4 100644 (file)
@@ -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);