Skip to content

Commit f7f9482

Browse files
geertuherbertx
authored andcommitted
crypto: atmel - CRYPTO_DEV_ATMEL_TDES and CRYPTO_DEV_ATMEL_SHA should depend on HAS_DMA
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/crypto/atmel-tdes.ko] undefined! ERROR: "bad_dma_ops" [drivers/crypto/atmel-sha.ko] undefined! Add dependencies on HAS_DMA to fix this. Fixes: ceb4afb ("crypto: atmel - refine Kconfig dependencies") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent d80388e commit f7f9482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/crypto/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ config CRYPTO_DEV_ATMEL_AES
445445

446446
config CRYPTO_DEV_ATMEL_TDES
447447
tristate "Support for Atmel DES/TDES hw accelerator"
448+
depends on HAS_DMA
448449
depends on ARCH_AT91 || COMPILE_TEST
449450
select CRYPTO_DES
450451
select CRYPTO_BLKCIPHER
@@ -458,6 +459,7 @@ config CRYPTO_DEV_ATMEL_TDES
458459

459460
config CRYPTO_DEV_ATMEL_SHA
460461
tristate "Support for Atmel SHA hw accelerator"
462+
depends on HAS_DMA
461463
depends on ARCH_AT91 || COMPILE_TEST
462464
select CRYPTO_HASH
463465
help

0 commit comments

Comments
 (0)