CAAM and imx-scc both have their own Kconfig symbols, so CONFIG_CRYPTO_HW only serves the purpose of hiding a two entry menu behind it. Let's just get rid of it. This has the added benefit of being able to use imply on the drivers. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- drivers/Makefile | 2 +- drivers/crypto/Kconfig | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index be2f736eb188..41a2054db083 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -38,7 +38,7 @@ obj-$(CONFIG_FIRMWARE) += firmware/ obj-$(CONFIG_FPGA) += fpga/ obj-$(CONFIG_GENERIC_PHY) += phy/ obj-$(CONFIG_HAB) += hab/ -obj-$(CONFIG_CRYPTO_HW) += crypto/ +obj-y += crypto/ obj-$(CONFIG_AIODEV) += aiodev/ obj-y += memory/ obj-y += soc/ diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 6b7966e5c216..594c79127382 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -1,11 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only -menuconfig CRYPTO_HW - bool "Hardware crypto devices" - -if CRYPTO_HW +menu "Hardware crypto devices" source "drivers/crypto/caam/Kconfig" source "drivers/crypto/imx-scc/Kconfig" -endif +endmenu -- 2.30.2