]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
of/fdt: don't ignore errors from of_setup_earlycon
authorChristoph Hellwig <hch@lst.de>
Tue, 10 Sep 2019 05:58:33 +0000 (07:58 +0200)
committerRob Herring <robh@kernel.org>
Tue, 1 Oct 2019 12:12:43 +0000 (07:12 -0500)
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>
drivers/of/fdt.c

index 223d617ecfe17458207dfc6dfb3c5b9c134d937f..d01d834b26b0b9b55aca6eef88dc73661cf7571a 100644 (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;
 }