diff options
author | Tom Rini <trini@konsulko.com> | 2021-10-07 09:00:45 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-10-07 09:00:45 -0400 |
commit | 11a69a9ef3f5eaccdca4dd89c7d8d91bd5b3b904 (patch) | |
tree | 75ea296bb71b6f5ab86b82979304576f04caaa66 /arch/riscv/lib/fdt_fixup.c | |
parent | ea67f467a43e4c8852bd1ce1bb75f5dc6c3788d1 (diff) | |
parent | 1b2b52f29402b5aaccccadfe4ba11bd3f29bd414 (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-riscv
- Reset improvements, enable coherence manager on ae350, k210 clk
improvements, other fixes
Diffstat (limited to 'arch/riscv/lib/fdt_fixup.c')
-rw-r--r-- | arch/riscv/lib/fdt_fixup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/riscv/lib/fdt_fixup.c b/arch/riscv/lib/fdt_fixup.c index f636b284497..61cf8935269 100644 --- a/arch/riscv/lib/fdt_fixup.c +++ b/arch/riscv/lib/fdt_fixup.c @@ -31,7 +31,6 @@ int riscv_fdt_copy_resv_mem_node(const void *src, void *dst) fdt_addr_t addr; fdt_size_t size; int offset, node, err, rmem_offset; - bool nomap = true; char basename[32] = {0}; int bname_len; int max_len = sizeof(basename); @@ -81,9 +80,7 @@ int riscv_fdt_copy_resv_mem_node(const void *src, void *dst) log_err("failed to add reserved memory: %d\n", err); return err; } - if (!fdt_getprop(src, node, "no-map", NULL)) - nomap = false; - if (nomap) { + if (fdt_getprop(src, node, "no-map", NULL)) { rmem_offset = fdt_node_offset_by_phandle(dst, phandle); fdt_setprop_empty(dst, rmem_offset, "no-map"); } |