summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hifn_795x.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-10-10 12:55:41 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-10-21 14:28:57 +0200
commit75b766258eb2b8255c628a994663bd5298f216e6 (patch)
treedb755f2fbe3aeccb8b00e6eba238999221da0eca /drivers/crypto/hifn_795x.c
parent906b2c9f2d9f395f5ca01b855b7c74b126517816 (diff)
downloadlinux-75b766258eb2b8255c628a994663bd5298f216e6.tar.gz
linux-75b766258eb2b8255c628a994663bd5298f216e6.tar.bz2
linux-75b766258eb2b8255c628a994663bd5298f216e6.zip
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: Richard Weinberger <richard@nod.at> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r--drivers/crypto/hifn_795x.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index a84250a5dd51..fe765f49de58 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -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)) {