diff options
| author | Hannes Schmelzer <[email protected]> | 2018-05-04 10:49:11 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-05-10 20:38:34 -0400 |
| commit | 7f1cb1d588789585aa962250fda4c3e095901c5b (patch) | |
| tree | 0397a1002e36e4a28d11e4b9f233dfef135e14ca | |
| parent | 8140816eea9faef804a333e8416249fc57d0bedc (diff) | |
bootm: fix 'memory-fixup' for vxWorks boot
The check for having a memory node within the fdt blob is made wrong, we
fix this here.
Signed-off-by: Hannes Schmelzer <[email protected]>
| -rw-r--r-- | arch/arm/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index b27266c7a19..c3c1d2fdfa2 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -437,7 +437,7 @@ void boot_prep_vxworks(bootm_headers_t *images) if (images->ft_addr) { off = fdt_path_offset(images->ft_addr, "/memory"); - if (off < 0) { + if (off > 0) { if (arch_fixup_fdt(images->ft_addr)) puts("## WARNING: fixup memory failed!\n"); } |
