of/fdt: don't ignore errors from of_setup_earlycon

If of_setup_earlycon we should keep on iterating earlycon options
instead of breaking out of the loop.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
Christoph Hellwig 2019-09-10 07:58:33 +02:00 committed by Rob Herring
parent 1f947a863d
commit b204731689

View File

@ -947,8 +947,8 @@ int __init early_init_dt_scan_chosen_stdout(void)
if (fdt_node_check_compatible(fdt, offset, match->compatible))
continue;
of_setup_earlycon(match, offset, options);
return 0;
if (of_setup_earlycon(match, offset, options) == 0)
return 0;
}
return -ENODEV;
}