samples: ipm_mcux: drop device_get_binding/DT_INST

Use DEVICE_DT_GET_ANY.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-04-26 07:39:42 -07:00 committed by Carles Cufí
commit 1309467cdb

View file

@ -35,8 +35,8 @@ void main(void)
printk("Hello World from MASTER! %s\n", CONFIG_ARCH); printk("Hello World from MASTER! %s\n", CONFIG_ARCH);
/* Get IPM device handle */ /* Get IPM device handle */
ipm = device_get_binding(DT_LABEL(DT_INST(0, nxp_lpc_mailbox))); ipm = DEVICE_DT_GET_ANY(nxp_lpc_mailbox);
if (!ipm) { if (!(ipm && device_is_ready(ipm))) {
printk("Could not get IPM device handle!\n"); printk("Could not get IPM device handle!\n");
while (1) { while (1) {
} }