crypto: starfive - Fix driver dependencies

Message ID 20230519134233.108251-1-jiajie.ho@starfivetech.com
State New
Headers
Series crypto: starfive - Fix driver dependencies |

Commit Message

JiaJie Ho May 19, 2023, 1:42 p.m. UTC
  Kconfig updated to depend on DMADEVICES instead of selecting it.

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305191929.Eq4OVZ6D-lkp@intel.com/
Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
---
 drivers/crypto/starfive/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Comments

Herbert Xu May 22, 2023, 5:17 a.m. UTC | #1
On Fri, May 19, 2023 at 09:42:33PM +0800, Jia Jie Ho wrote:
> Kconfig updated to depend on DMADEVICES instead of selecting it.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Link: https://lore.kernel.org/oe-kbuild-all/202305191929.Eq4OVZ6D-lkp@intel.com/
> Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
> ---
>  drivers/crypto/starfive/Kconfig | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Patch applied.  Thanks.
  

Patch

diff --git a/drivers/crypto/starfive/Kconfig b/drivers/crypto/starfive/Kconfig
index d664757b7ec1..16fd6a0aa1d7 100644
--- a/drivers/crypto/starfive/Kconfig
+++ b/drivers/crypto/starfive/Kconfig
@@ -4,7 +4,7 @@ 
 
 config CRYPTO_DEV_JH7110
 	tristate "StarFive JH7110 cryptographic engine driver"
-	depends on SOC_STARFIVE || COMPILE_TEST
+	depends on (SOC_STARFIVE || COMPILE_TEST) && DMADEVICES
 	select CRYPTO_ENGINE
 	select CRYPTO_HMAC
 	select CRYPTO_SHA256
@@ -12,7 +12,6 @@  config CRYPTO_DEV_JH7110
 	select CRYPTO_SM3_GENERIC
 	select CRYPTO_RSA
 	select ARM_AMBA
-	select DMADEVICES
 	select AMBA_PL08X
 	help
 	  Support for StarFive JH7110 crypto hardware acceleration engine.