From: Christoph Hellwig Date: Tue, 10 Sep 2019 05:58:33 +0000 (+0200) Subject: of/fdt: don't ignore errors from of_setup_earlycon X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b204731689059f0e27b676e86b089d59bd1a4805;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Rob Herring --- diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 223d617ecfe1..d01d834b26b0 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -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; }