From 3ca0609adc726ed829325ef6363d6ff5402ea9bb Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 11 Aug 2020 11:23:37 -0600 Subject: stdio: Tidy up use of CONFIG_SYS_DEVICE_NULLDEV Now that this is in Kconfig we can move the logic at the top of the file to Kconfig, and use if() instead of #if. Update the file with these changes. Signed-off-by: Simon Glass --- common/Kconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'common/Kconfig') diff --git a/common/Kconfig b/common/Kconfig index 5a6d0e0e79b..8f61aa76024 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -646,6 +646,7 @@ config SPL_SYS_STDIO_DEREGISTER config SYS_DEVICE_NULLDEV bool "Enable a null device for stdio" + default y if SPLASH_SCREEN || SYS_STDIO_DEREGISTER help Enable creation of a "nulldev" stdio device. This allows silent operation of the console by setting stdout to "nulldev". Enable -- cgit v1.2.3