Commit 59990bf0 authored by Simon Glass's avatar Simon Glass

dm: serial: Don't require device tree to configure a console

Allow serial_find_console_or_panic() to work without a device tree.
Signed-off-by: default avatarSimon Glass <>
parent 91cbd792
......@@ -25,6 +25,7 @@ struct udevice *cur_dev __attribute__ ((section(".data")));
static void serial_find_console_or_panic(void)
int node;
/* Check for a chosen console */
......@@ -44,7 +45,7 @@ static void serial_find_console_or_panic(void)
cur_dev = NULL;
* Failing that, get the device with sequence number 0, or in extremis
* just the first serial device we can find. But we insist on having
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment