diff options
Diffstat (limited to 'src/core/serial_console.c')
| -rw-r--r-- | src/core/serial_console.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/serial_console.c b/src/core/serial_console.c index bbddd6b29..3852a308c 100644 --- a/src/core/serial_console.c +++ b/src/core/serial_console.c @@ -18,9 +18,12 @@ struct console_driver serial_console __console_driver; static void serial_console_init ( void ) { - /* Serial driver initialization should already be done, - * time to enable the serial console. */ - serial_console.disabled = 0; + /* + * Check if serial driver initialization is done. + * If so, it's time to enable the serial console. + */ + if ( serial_initialized ) + serial_console.disabled = 0; } struct console_driver serial_console __console_driver = { |
