Commit b2047316 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Rob Herring
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 1f947a86
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -947,7 +947,7 @@ 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);
		if (of_setup_earlycon(match, offset, options) == 0)
			return 0;
	}
	return -ENODEV;