From: Tom Rini <trini@konsulko.com>
Date: Fri, 14 Oct 2022 11:50:19 +0000 (-0400)
Subject: core: Enable DM by default
X-Git-Tag: v2025.01-rc5-pxa1908~1240^2~2
X-Git-Url: http://git.dujemihanovic.xyz/%22mailto:Murray.Jensen%40csiro.au/static/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=9af4a0c8a6ffb34e968bdcb8bcaf8d97610e53b3;p=u-boot.git

core: Enable DM by default

There are no longer any platforms which do not enable DM, move this to a
def_bool y and remove the check in the Makefile.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---

diff --git a/Makefile b/Makefile
index 3866cc62f9..7cdd31f772 100644
--- a/Makefile
+++ b/Makefile
@@ -1137,14 +1137,6 @@ ifneq ($(CONFIG_SPL_FIT_GENERATOR),)
 	@echo >&2 "to binman instead, to avoid the proliferation of"
 	@echo >&2 "arch-specific scripts with no tests."
 	@echo >&2 "===================================================="
-endif
-ifneq ($(CONFIG_DM),y)
-	@echo >&2 "===================== WARNING ======================"
-	@echo >&2 "This board does not use CONFIG_DM. CONFIG_DM will be"
-	@echo >&2 "compulsory starting with the v2020.01 release."
-	@echo >&2 "Failure to update may result in board removal."
-	@echo >&2 "See doc/develop/driver-model/migration.rst for more info."
-	@echo >&2 "===================================================="
 endif
 	$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
 		$(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG))
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index c9bf5de433..0dc442b921 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -1,7 +1,7 @@
 menu "Generic Driver Options"
 
 config DM
-	bool "Enable Driver Model"
+	def_bool y
 	help
 	  This config option enables Driver Model. This brings in the core
 	  support, including scanning of platform data on start-up. If