diff mbox series

[v3,1/4] libpdbg: Properties for / in system tree are attached to root node

Message ID 20200304031913.150094-2-amitay@ozlabs.org
State Accepted
Headers show
Series Fix handling of attributes for virtual targets | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch warning Failed to apply on branch master (8b4611b5d8e7e2279fe4aa80c892fcfe10aa398d)
snowpatch_ozlabs/apply_patch fail Failed to apply to any branch

Commit Message

Amitay Isaacs March 4, 2020, 3:19 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alistair Popple March 4, 2020, 3:35 a.m. UTC | #1
Reviewed-by: Alistair Popple <alistair@popple.id.au>

On Wednesday, 4 March 2020 2:19:10 PM AEDT Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
> ---
>  libpdbg/device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libpdbg/device.c b/libpdbg/device.c
> index 66527ed..48f2c58 100644
> --- a/libpdbg/device.c
> +++ b/libpdbg/device.c
> @@ -707,7 +707,7 @@ bool pdbg_targets_init(void *fdt)
>  	}
> 
>  	/* Root node needs to be valid when this function returns */
> -	pdbg_dt_root = dt_new_node("", NULL, 0);
> +	pdbg_dt_root = dt_new_node("", dtb->system.fdt, 0);
>  	if (!pdbg_dt_root)
>  		return false;
diff mbox series

Patch

diff --git a/libpdbg/device.c b/libpdbg/device.c
index 66527ed..48f2c58 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -707,7 +707,7 @@  bool pdbg_targets_init(void *fdt)
 	}
 
 	/* Root node needs to be valid when this function returns */
-	pdbg_dt_root = dt_new_node("", NULL, 0);
+	pdbg_dt_root = dt_new_node("", dtb->system.fdt, 0);
 	if (!pdbg_dt_root)
 		return false;