Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75b76625 authored by Richard Weinberger's avatar Richard Weinberger Committed by Herbert Xu
Browse files

crypto: Make hifn_795x build depend on !ARCH_DMA_ADDR_T_64BIT



hifn_795x works only on 32 bit, remove the detection while loading
the module and catch non-32 bit systems at build time.

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 906b2c9f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ config CRYPTO_DEV_HIFN_795X
	select CRYPTO_BLKCIPHER
	select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
	depends on PCI
	depends on !ARCH_DMA_ADDR_T_64BIT
	help
	  This option allows you to have support for HIFN 795x crypto adapters.

+2 −4
Original line number Diff line number Diff line
@@ -2744,10 +2744,8 @@ static int __init hifn_init(void)
	unsigned int freq;
	int err;

	if (sizeof(dma_addr_t) > 4) {
		printk(KERN_INFO "HIFN supports only 32-bit addresses.\n");
		return -EINVAL;
	}
	/* HIFN supports only 32-bit addresses */
	BUILD_BUG_ON(sizeof(dma_addr_t) != 4);

	if (strncmp(hifn_pll_ref, "ext", 3) &&
	    strncmp(hifn_pll_ref, "pci", 3)) {