summaryrefslogtreecommitdiff
path: root/zephyr/emul/i2c_mock.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/emul/i2c_mock.c')
-rw-r--r--zephyr/emul/i2c_mock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/emul/i2c_mock.c b/zephyr/emul/i2c_mock.c
index ecacf95369..207151ef6c 100644
--- a/zephyr/emul/i2c_mock.c
+++ b/zephyr/emul/i2c_mock.c
@@ -58,7 +58,7 @@ static int i2c_mock_init(const struct emul *emul, const struct device *parent)
#define INIT_I2C_MOCK(n) \
static const struct i2c_common_emul_cfg i2c_mock_cfg_##n = { \
- .i2c_label = DT_INST_BUS_LABEL(n), \
+ .i2c_label = DT_LABEL(DT_BUS(DT_DRV_INST(n))), \
.dev_label = DT_INST_LABEL(n), \
.addr = DT_INST_REG_ADDR(n), \
}; \