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:
parent
03952d738b
commit
1309467cdb
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue