crypto: qce - Let 'DEV_QCE' depend on both HAS_DMA and HAS_IOMEM
authorChen Gang <gang.chen.5i5j@gmail.com>
Sun, 13 Jul 2014 03:01:38 +0000 (11:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Jul 2014 13:31:37 +0000 (21:31 +0800)
'DEV_QCE' needs both HAS_DMA and HAS_IOMEM, so let it depend on them.

The related error (with allmodconfig under score):

    MODPOST 1365 modules
  ERROR: "devm_ioremap_resource" [drivers/crypto/qce/qcrypto.ko] undefined!
  ERROR: "dma_map_sg" [drivers/crypto/qce/qcrypto.ko] undefined!
  ERROR: "dma_set_mask" [drivers/crypto/qce/qcrypto.ko] undefined!
  ERROR: "dma_supported" [drivers/crypto/qce/qcrypto.ko] undefined!
  ERROR: "dma_unmap_sg" [drivers/crypto/qce/qcrypto.ko] undefined!

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig

index 5ef9ec9d55b3c11d5eb5ee5caa0a38bb2042a742..2fb0fdfc87df912f4ba926c1a6974e3803887c30 100644 (file)
@@ -422,7 +422,7 @@ source "drivers/crypto/qat/Kconfig"
 
 config CRYPTO_DEV_QCE
        tristate "Qualcomm crypto engine accelerator"
-       depends on ARCH_QCOM || COMPILE_TEST
+       depends on (ARCH_QCOM || COMPILE_TEST) && HAS_DMA && HAS_IOMEM
        select CRYPTO_AES
        select CRYPTO_DES
        select CRYPTO_ECB