diff mbox series

[07/19] libpdbg: Register fake drivers with fake backend

Message ID 20200227010704.145608-8-amitay@ozlabs.org
State Superseded
Headers show
Series Add sbefifo backend | 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 Feb. 27, 2020, 1:06 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
---
 libpdbg/fake.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libpdbg/fake.c b/libpdbg/fake.c
index ae02463..64925d4 100644
--- a/libpdbg/fake.c
+++ b/libpdbg/fake.c
@@ -90,8 +90,8 @@  DECLARE_HW_UNIT(fake_thread);
 __attribute__((constructor))
 static void register_fake(void)
 {
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_fsi_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_pib_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_core_hw_unit);
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &fake_thread_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_fsi_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_pib_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_core_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_FAKE, &fake_thread_hw_unit);
 }