]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cavium/zip - Use dma_set_mask_and_coherent to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Nov 2020 07:31:31 +0000 (08:31 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Nov 2020 06:13:47 +0000 (17:13 +1100)
commitfc6c70da1fe37cc74eb2fd069d4e8586d9059541
treec13d25e44d25a6a7e40ead54453ff9ff31cb42e5
parentefb0c91a00694f60e03bda6ab3de99da6809255e
crypto: cavium/zip - Use dma_set_mask_and_coherent to simplify code

'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by
an equivalent 'dma_set_mask_and_coherent()' which is much less verbose.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c