]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
spl: fit: Fix non-matching DT names console output
authorAndreas Dannenberg <dannenberg@ti.com>
Fri, 3 Jun 2016 19:05:04 +0000 (14:05 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 4 Jun 2016 12:50:17 +0000 (08:50 -0400)
When no DTB can be matched successfully to the board that's being used
a list of available FIT-embedded DTBs will be output to the console for
diagnostic purposes. But rather than the contents of the "description"
FDT property a non-existent property was accessed and as a result "NULL"
was output instead of the actual name(s) of the DTB(s). Fix this issue
by using the correct property which is also the exact same property
that's used earlier during the actual board matching process.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
common/spl/spl_fit.c

index c9eb020bbce5d6fed21addada130c597bbcc445e..987470896c46d28c00561f5ce8f0b002862e353b 100644 (file)
@@ -77,7 +77,7 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
        for (node = fdt_first_subnode(fdt, conf);
             node >= 0;
             node = fdt_next_subnode(fdt, node)) {
-               name = fdt_getprop(fdt, node, "name", &len);
+               name = fdt_getprop(fdt, node, "description", &len);
                printf("   %s\n", name);
        }
 #endif