diff --git a/drivers/regulator/Kconfig.fixed b/drivers/regulator/Kconfig.fixed index 8bf82aacd1e..1cfbcb1ec1a 100644 --- a/drivers/regulator/Kconfig.fixed +++ b/drivers/regulator/Kconfig.fixed @@ -1,11 +1,10 @@ # Copyright 2020 Peter Bigot Consulting, LLC # SPDX-License-Identifier: Apache-2.0 -DT_COMPAT_REGULATOR_FIXED := regulator-fixed - config REGULATOR_FIXED bool "GPIO-controlled regulators" - default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED)) + default y + depends on DT_HAS_REGULATOR_FIXED_ENABLED depends on GPIO help Enable the driver for GPIO-controlled regulators diff --git a/drivers/regulator/Kconfig.pmic b/drivers/regulator/Kconfig.pmic index 69dd44e6a5a..03f266bb798 100644 --- a/drivers/regulator/Kconfig.pmic +++ b/drivers/regulator/Kconfig.pmic @@ -1,12 +1,10 @@ # Copyright (c) 2021, NXP # SPDX -License-Identifier: Apache-2.0 -DT_COMPAT_PMIC_REG := regulator-pmic - config REGULATOR_PMIC bool "PMIC Regulator Driver" - depends on $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG)) - default $(dt_compat_enabled,$(DT_COMPAT_PMIC_REG)) + default y + depends on DT_HAS_REGULATOR_PMIC_ENABLED select I2C help Enable the pmic regulator driver