[PATCH 008/171] dm: Add a Kconfig for SPL_DEVRES

Simon Glass
2023-01-30T14:48:18Z

This is implicitly used in the source and seems useful, so add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/core/Kconfig | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 6fc8854b574..22381500afe 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -275,6 +275,10 @@ config DEVRES
non-managed variants. For example, devres_alloc() to kzalloc(),
devm_kmalloc() to kmalloc(), etc.

+config SPL_DEVRES
+ def_bool n # Managed device resources (SPL)
+ depends on SPL_DM
+
config DEBUG_DEVRES
bool "Managed device resources debugging functions"
depends on DEVRES
--
2.39.1.456.gfc5497dd1b-goog