diff --git a/samples/subsys/ipc/ipm_mcux/remote/src/main_remote.c b/samples/subsys/ipc/ipm_mcux/remote/src/main_remote.c index 1c4b07038d7..4d395f8194b 100644 --- a/samples/subsys/ipc/ipm_mcux/remote/src/main_remote.c +++ b/samples/subsys/ipc/ipm_mcux/remote/src/main_remote.c @@ -20,7 +20,7 @@ void ping_ipm_callback(void *context, u32_t id, volatile void *data) void main(void) { - ipm = device_get_binding(DT_INST_0_NXP_LPC_MAILBOX_LABEL); + ipm = device_get_binding(DT_LABEL(DT_INST(0, nxp_lpc_mailbox))); if (!ipm) { while (1) { } diff --git a/samples/subsys/ipc/ipm_mcux/src/main_master.c b/samples/subsys/ipc/ipm_mcux/src/main_master.c index 846005a5b16..23180114841 100644 --- a/samples/subsys/ipc/ipm_mcux/src/main_master.c +++ b/samples/subsys/ipc/ipm_mcux/src/main_master.c @@ -33,7 +33,7 @@ void main(void) printk("Hello World from MASTER! %s\n", CONFIG_ARCH); /* Get IPM device handle */ - ipm = device_get_binding(DT_INST_0_NXP_LPC_MAILBOX_LABEL); + ipm = device_get_binding(DT_LABEL(DT_INST(0, nxp_lpc_mailbox))); if (!ipm) { printk("Could not get IPM device handle!\n"); while (1) { diff --git a/samples/subsys/ipc/ipm_mhu_dual_core/src/main.c b/samples/subsys/ipc/ipm_mhu_dual_core/src/main.c index aedbdaa88b8..93ef1144713 100644 --- a/samples/subsys/ipc/ipm_mhu_dual_core/src/main.c +++ b/samples/subsys/ipc/ipm_mhu_dual_core/src/main.c @@ -49,7 +49,7 @@ void main(void) { printk("IPM MHU sample on %s\n", CONFIG_BOARD); - mhu0 = device_get_binding(DT_INST_0_ARM_MHU_LABEL); + mhu0 = device_get_binding(DT_LABEL(DT_INST(0, arm_mhu))); if (!mhu0) { printk("CPU %d, get MHU0 fail!\n", sse_200_platform_get_cpu_id());