diff mbox series

[v3,08/25] libpdbg: Register i2c driver with i2c backend

Message ID 20200417070749.276754-9-amitay@ozlabs.org
State Superseded
Headers show
Series Add sbefifo backend | expand

Commit Message

Amitay Isaacs April 17, 2020, 7:07 a.m. UTC
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
Reviewed-by: Alistair Popple <alistair@popple.id.au>
---
 libpdbg/i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/i2c.c b/libpdbg/i2c.c
index 3d0b80a..e3d508b 100644
--- a/libpdbg/i2c.c
+++ b/libpdbg/i2c.c
@@ -177,5 +177,5 @@  DECLARE_HW_UNIT(p8_i2c_pib);
 __attribute__((constructor))
 static void register_i2c(void)
 {
-	pdbg_hwunit_register(PDBG_DEFAULT_BACKEND, &p8_i2c_pib_hw_unit);
+	pdbg_hwunit_register(PDBG_BACKEND_I2C, &p8_i2c_pib_hw_unit);
 }