diff options
author | Thierry Reding <treding@nvidia.com> | 2021-09-03 15:16:18 +0200 |
---|---|---|
committer | Tom Warren <twarren@nvidia.com> | 2021-10-13 14:18:30 -0700 |
commit | 4bf88ba76abb224b3ca258a2f502384ec6c86bd6 (patch) | |
tree | 74ac3ca45b7a69addd61faf887b20a175e92aa16 /board/nvidia/p3450-0000/p3450-0000.c | |
parent | d5598cfa9bcab50812b2b416af91c2a37be67531 (diff) |
fdtdec: Support retrieving the name of a carveout
When retrieving a given carveout for a device, allow callers to query
the name. This helps differentiating between carveouts when there are
more than one.
This is also useful when copying carveouts to help assign a meaningful
name that cannot always be guessed.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/nvidia/p3450-0000/p3450-0000.c')
-rw-r--r-- | board/nvidia/p3450-0000/p3450-0000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c index e6b66966c1..7c1e75307f 100644 --- a/board/nvidia/p3450-0000/p3450-0000.c +++ b/board/nvidia/p3450-0000/p3450-0000.c @@ -127,7 +127,7 @@ static int ft_copy_carveout(void *dst, const void *src, const char *node) struct fdt_memory fb; int err; - err = fdtdec_get_carveout(src, node, "memory-region", 0, &fb); + err = fdtdec_get_carveout(src, node, "memory-region", 0, &fb, NULL); if (err < 0) { if (err != -FDT_ERR_NOTFOUND) printf("failed to get carveout for %s: %d\n", node, |