kernel: kconfig: Disable DEVICE_DEINIT_SUPPORT by default

This Kconfig, which it itself admits is for a "very specific case"
was set to default as yes, this includes extra code in drivers with
this functionality and increases driver struct size for cases where
this function isn't needed (i.e. all because it's enabled by
default), therefore change it to be opt-in rather than opt-out

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2025-11-14 10:28:09 +00:00
committed by Fabio Baltieri
parent 005a292bbd
commit b128e51994

View File

@@ -35,7 +35,6 @@ config DEVICE_DT_METADATA
config DEVICE_DEINIT_SUPPORT
bool "Support device de-initialization"
default y
help
In very specific case, it might be necessary to de-initialize
a device at runtime. This is possible by providing a function