aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2016-06-03 14:05:04 -0500
committerTom Rini <trini@konsulko.com>2016-06-04 08:50:17 -0400
commit8aa57a95a2efc8174c5482f9b3abc4920b479ff2 (patch)
tree21f22f646c9e5dedb636180fc68186c03830351a
parent715b3a9b2486e8d7a32365d817c77209b35ee796 (diff)
downloadu-boot-8aa57a95a2efc8174c5482f9b3abc4920b479ff2.zip
u-boot-8aa57a95a2efc8174c5482f9b3abc4920b479ff2.tar.gz
u-boot-8aa57a95a2efc8174c5482f9b3abc4920b479ff2.tar.bz2
spl: fit: Fix non-matching DT names console output
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>
-rw-r--r--common/spl/spl_fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index c9eb020..9874708 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -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