diff mbox series

libpdbg/p9chip.c: Use the standard function for iterating targets

Message ID 20180813050046.29896-1-alistair@popple.id.au
State Accepted
Headers show
Series libpdbg/p9chip.c: Use the standard function for iterating targets | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success master/apply_patch Successfully applied
snowpatch_ozlabs/build-multiarch success Test build-multiarch on branch master

Commit Message

Alistair Popple Aug. 13, 2018, 5 a.m. UTC
Signed-off-by: Alistair Popple <alistair@popple.id.au>
---
 libpdbg/p9chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/p9chip.c b/libpdbg/p9chip.c
index b347cc1..2585f11 100644
--- a/libpdbg/p9chip.c
+++ b/libpdbg/p9chip.c
@@ -223,7 +223,7 @@  static int p9_ram_setup(struct thread *thread)
 
 	/* We can only ram a thread if all the threads on the core/chip are
 	 * quiesced */
-	dt_for_each_compatible(&chip->target, target, "ibm,power9-thread") {
+	pdbg_for_each_target("thread", &chip->target, target) {
 		struct thread *tmp;
 
 		/* If this thread wasn't enabled it may not yet have been probed