summaryrefslogtreecommitdiffstats
path: root/libpdbg
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-08-14 15:38:01 +1000
committerAlistair Popple <alistair@popple.id.au>2017-08-14 15:51:30 +1000
commit39b31a75bf639edc93a0b786c9e1bdffdd435fa2 (patch)
tree3d234fa6ac00504fe00da3e509918b49125dab1c /libpdbg
parentac22a4005d40e6e7d23cc1a7e73c4da8b8b6a898 (diff)
downloadpdbg-39b31a75bf639edc93a0b786c9e1bdffdd435fa2.tar.gz
pdbg-39b31a75bf639edc93a0b786c9e1bdffdd435fa2.zip
libpdbg/target.c: Probe all root nodes in the device-tree
When multiple device tree nodes exist at the top level subsequent nodes were not getting probed. Fix this. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg')
-rw-r--r--libpdbg/target.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpdbg/target.c b/libpdbg/target.c
index 5eafde1..aa446b1 100644
--- a/libpdbg/target.c
+++ b/libpdbg/target.c
@@ -262,5 +262,8 @@ static void _target_probe(struct dt_node *dn)
* exist but don't */
void target_probe(void)
{
- _target_probe(dt_first(dt_root));
+ struct dt_node *dn;
+
+ dt_for_each_node(dt_root, dn)
+ _target_probe(dn);
}
OpenPOWER on IntegriCloud