Skip to content

Commit 8c98ebd

Browse files
geertuherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 00425bb commit 8c98ebd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/crypto/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ config CRYPTO_DEV_VMX
446446
source "drivers/crypto/vmx/Kconfig"
447447

448448
config CRYPTO_DEV_IMGTEC_HASH
449-
depends on MIPS || COMPILE_TEST
450449
tristate "Imagination Technologies hardware hash accelerator"
450+
depends on MIPS || COMPILE_TEST
451+
depends on HAS_DMA
451452
select CRYPTO_ALGAPI
452453
select CRYPTO_MD5
453454
select CRYPTO_SHA1

0 commit comments

Comments
 (0)