From 366c3936a9e9b458cf30c386208ec7ecf084c3f3 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Wed, 21 Dec 2016 15:52:32 +1100 Subject: console: remove force_dummy_console() force_dummy_console() was only ever used to ensure the dummy console would be initialised when the platform did not setup it's usual console. The new console init path will uses the dummy console by default so this is now unnecessary. Signed-off-by: Oliver O'Halloran Signed-off-by: Stewart Smith --- core/console.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'core') diff --git a/core/console.c b/core/console.c index 1f055bf4..309249e4 100644 --- a/core/console.c +++ b/core/console.c @@ -49,7 +49,7 @@ struct memcons memcons __section(".data.memcons") = { .ibuf_size = INMEM_CON_IN_LEN, }; -bool dummy_console_enabled(void) +static bool dummy_console_enabled(void) { #ifdef FORCE_DUMMY_CONSOLE return true; @@ -59,13 +59,6 @@ bool dummy_console_enabled(void) #endif } -void force_dummy_console(void) -{ - if (!dummy_console_enabled()) - dt_add_property(dt_chosen, "sapphire,enable-dummy-console", - NULL, 0); -} - /* * Helper function for adding /ibm,opal/consoles/serial@ nodes */ -- cgit v1.2.1