diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-04-23 14:03:58 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-24 08:14:09 -0400 |
commit | 8c98ebd7a6ff6ef352bb4c5516a8849b40b5ef6b (patch) | |
tree | 1ee225e2194e89c983820ebf98976377fefe92ce /drivers/crypto | |
parent | 00425bb181c204c8f250fec122e2817a930e0286 (diff) |
crypto: img-hash - CRYPTO_DEV_IMGTEC_HASH should depend on HAS_DMA
If NO_DMA=y:
drivers/built-in.o: In function `img_hash_write_via_dma_stop':
img-hash.c:(.text+0xa2b822): undefined reference to `dma_unmap_sg'
drivers/built-in.o: In function `img_hash_xmit_dma':
img-hash.c:(.text+0xa2b8d8): undefined reference to `dma_map_sg'
img-hash.c:(.text+0xa2b948): undefined reference to `dma_unmap_sg'
Also move the "depends" section below the "tristate" line while we're at
it.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/Kconfig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 800bf41718e1..033c0c86f6ec 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig | |||
@@ -446,8 +446,9 @@ config CRYPTO_DEV_VMX | |||
446 | source "drivers/crypto/vmx/Kconfig" | 446 | source "drivers/crypto/vmx/Kconfig" |
447 | 447 | ||
448 | config CRYPTO_DEV_IMGTEC_HASH | 448 | config CRYPTO_DEV_IMGTEC_HASH |
449 | depends on MIPS || COMPILE_TEST | ||
450 | tristate "Imagination Technologies hardware hash accelerator" | 449 | tristate "Imagination Technologies hardware hash accelerator" |
450 | depends on MIPS || COMPILE_TEST | ||
451 | depends on HAS_DMA | ||
451 | select CRYPTO_ALGAPI | 452 | select CRYPTO_ALGAPI |
452 | select CRYPTO_MD5 | 453 | select CRYPTO_MD5 |
453 | select CRYPTO_SHA1 | 454 | select CRYPTO_SHA1 |