samples: ipm_imx: drop device_get_binding
Use DEVICE_DT_GET. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
e5d916c82d
commit
8d0974a929
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ void main(void)
|
|||
{
|
||||
const struct device *ipm;
|
||||
|
||||
ipm = device_get_binding("MU_B");
|
||||
if (!ipm) {
|
||||
ipm = DEVICE_DT_GET(DT_NODELABEL(mub));
|
||||
if (!device_is_ready(ipm)) {
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue