diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 8c879d4c4b8..5fd18e2f85c 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -3,7 +3,6 @@ menuconfig REGULATOR bool "Regulator drivers" - default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED)) help Include drivers for current/voltage regulators in system config diff --git a/drivers/regulator/Kconfig.fixed b/drivers/regulator/Kconfig.fixed index 2dcfbaab384..8bf82aacd1e 100644 --- a/drivers/regulator/Kconfig.fixed +++ b/drivers/regulator/Kconfig.fixed @@ -1,7 +1,9 @@ # Copyright 2020 Peter Bigot Consulting, LLC # SPDX-License-Identifier: Apache-2.0 -menuconfig REGULATOR_FIXED +DT_COMPAT_REGULATOR_FIXED := regulator-fixed + +config REGULATOR_FIXED bool "GPIO-controlled regulators" default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED)) depends on GPIO