summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-09-10 07:58:33 +0200
committerRob Herring <robh@kernel.org>2019-10-01 07:12:43 -0500
commitb204731689059f0e27b676e86b089d59bd1a4805 (patch)
treee9fc74d67667909455c4a447828278e709613ce2 /drivers/of
parent1f947a863dfcb6787c38a94403db6b455fcb76fc (diff)
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>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c4
1 files changed, 2 insertions, 2 deletions
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;
}