drivers: modem: remove usage of device_pm_control_nop

device_pm_control_nop is now deprecated in favour of NULL.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-04-28 11:20:27 +02:00 committed by Anas Nashif
commit 126e1eead8
4 changed files with 4 additions and 4 deletions

View file

@ -4878,6 +4878,6 @@ static struct net_if_api api_funcs = {
.init = offload_iface_init,
};
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, hl7800_init, device_pm_control_nop, &ictx,
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, hl7800_init, NULL, &ictx,
NULL, CONFIG_MODEM_HL7800_INIT_PRIORITY,
&api_funcs, MDM_MTU);

View file

@ -1197,7 +1197,7 @@ error:
}
/* Register the device with the Networking stack. */
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, device_pm_control_nop,
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, NULL,
&mdata, NULL,
CONFIG_MODEM_QUECTEL_BG9X_INIT_PRIORITY,
&api_funcs, MDM_MAX_DATA_LENGTH);

View file

@ -2125,7 +2125,7 @@ error:
return ret;
}
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, device_pm_control_nop,
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, modem_init, NULL,
&mdata, NULL,
CONFIG_MODEM_UBLOX_SARA_R4_INIT_PRIORITY,
&api_funcs,

View file

@ -1846,7 +1846,7 @@ static struct net_if_api api_funcs = {
.init = offload_iface_init,
};
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, wncm14a2a_init, device_pm_control_nop,
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, wncm14a2a_init, NULL,
&ictx, NULL,
CONFIG_MODEM_WNCM14A2A_INIT_PRIORITY,
&api_funcs,