crypto: atmel-{aes,sha,tdes} - Drop duplicate init of dma_slave_config.direction
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 13 Dec 2019 09:54:46 +0000 (09:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Dec 2019 06:58:34 +0000 (14:58 +0800)
The 'direction' member of the dma_slave_config will be going away
as it duplicates the direction given in the prepare call.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-sha.c
drivers/crypto/atmel-tdes.c

index c3f0e99..d5a1166 100644 (file)
@@ -817,7 +817,6 @@ static int atmel_aes_dma_transfer_start(struct atmel_aes_dev *dd,
        int err;
 
        memset(&config, 0, sizeof(config));
-       config.direction = dir;
        config.src_addr_width = addr_width;
        config.dst_addr_width = addr_width;
        config.src_maxburst = maxburst;
index 7cf4ec9..21fcc04 100644 (file)
@@ -2493,7 +2493,6 @@ static int atmel_sha_dma_init(struct atmel_sha_dev *dd,
                return ret;
        }
 
-       dd->dma_lch_in.dma_conf.direction = DMA_MEM_TO_DEV;
        dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base +
                SHA_REG_DIN(0);
        dd->dma_lch_in.dma_conf.src_maxburst = 1;
index 12268b5..51b3325 100644 (file)
@@ -753,7 +753,6 @@ static int atmel_tdes_dma_init(struct atmel_tdes_dev *dd,
                goto err_dma_in;
        }
 
-       dd->dma_lch_in.dma_conf.direction = DMA_MEM_TO_DEV;
        dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base +
                TDES_IDATA1R;
        dd->dma_lch_in.dma_conf.src_maxburst = 1;
@@ -770,7 +769,6 @@ static int atmel_tdes_dma_init(struct atmel_tdes_dev *dd,
                goto err_dma_out;
        }
 
-       dd->dma_lch_out.dma_conf.direction = DMA_DEV_TO_MEM;
        dd->dma_lch_out.dma_conf.src_addr = dd->phys_base +
                TDES_ODATA1R;
        dd->dma_lch_out.dma_conf.src_maxburst = 1;