drivers: ethernet: 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:
parent
94edcb7a4e
commit
27ed0fa0c5
13 changed files with 17 additions and 17 deletions
|
@ -1041,7 +1041,7 @@ static struct dsa_context dsa_context = {
|
|||
DT_LABEL(slave), \
|
||||
0, \
|
||||
dsa_port_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&dsa_context, \
|
||||
&dsa_0_slave_##slave##_config, \
|
||||
CONFIG_ETH_INIT_PRIORITY, \
|
||||
|
|
|
@ -324,7 +324,7 @@ static const struct ethernet_api e1000_api = {
|
|||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
e1000_probe,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&e1000_dev,
|
||||
NULL,
|
||||
CONFIG_ETH_INIT_PRIORITY,
|
||||
|
@ -448,7 +448,7 @@ static int ptp_e1000_init(const struct device *port)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(e1000_ptp_clock, PTP_CLOCK_NAME, ptp_e1000_init,
|
||||
device_pm_control_nop, &ptp_e1000_context, NULL, POST_KERNEL,
|
||||
NULL, &ptp_e1000_context, NULL, POST_KERNEL,
|
||||
CONFIG_APPLICATION_INIT_PRIORITY, &api);
|
||||
|
||||
#endif /* CONFIG_ETH_E1000_PTP_CLOCK */
|
||||
|
|
|
@ -847,7 +847,7 @@ static const struct eth_enc28j60_config eth_enc28j60_0_config = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
eth_enc28j60_init, device_pm_control_nop,
|
||||
eth_enc28j60_init, NULL,
|
||||
ð_enc28j60_0_runtime, ð_enc28j60_0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, &api_funcs, NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -771,6 +771,6 @@ static const struct enc424j600_config enc424j600_0_config = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
enc424j600_init, device_pm_control_nop,
|
||||
enc424j600_init, NULL,
|
||||
&enc424j600_0_runtime, &enc424j600_0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, &api_funcs, NET_ETH_MTU);
|
||||
|
|
|
@ -668,5 +668,5 @@ static struct eth_gecko_dev_data eth0_data = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0, eth_init,
|
||||
device_pm_control_nop, ð0_data, ð0_config,
|
||||
NULL, ð0_data, ð0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, ð_api, ETH_GECKO_MTU);
|
||||
|
|
|
@ -255,7 +255,7 @@ static const struct ethernet_api eth_api = {
|
|||
.send = eth_tx
|
||||
};
|
||||
|
||||
NET_DEVICE_DT_INST_DEFINE(0, eth_initialize, device_pm_control_nop,
|
||||
NET_DEVICE_DT_INST_DEFINE(0, eth_initialize, NULL,
|
||||
ð_data, ð_config, CONFIG_ETH_INIT_PRIORITY, ð_api,
|
||||
ETHERNET_L2, NET_L2_GET_CTX_TYPE(ETHERNET_L2), NET_ETH_MTU);
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ out:
|
|||
#define ETH_MCUX_PM_FUNC eth_mcux_device_pm_control
|
||||
|
||||
#else
|
||||
#define ETH_MCUX_PM_FUNC device_pm_control_nop
|
||||
#define ETH_MCUX_PM_FUNC NULL
|
||||
#endif /* CONFIG_NET_POWER_MANAGEMENT */
|
||||
|
||||
#if ETH_MCUX_FIXED_LINK
|
||||
|
@ -1536,7 +1536,7 @@ static int ptp_mcux_init(const struct device *port)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(mcux_ptp_clock_0, PTP_CLOCK_NAME, ptp_mcux_init,
|
||||
device_pm_control_nop, &ptp_mcux_0_context, NULL, POST_KERNEL,
|
||||
NULL, &ptp_mcux_0_context, NULL, POST_KERNEL,
|
||||
CONFIG_APPLICATION_INIT_PRIORITY, &api);
|
||||
|
||||
#endif /* CONFIG_PTP_CLOCK_MCUX */
|
||||
|
|
|
@ -634,7 +634,7 @@ UTIL_LISTIFY(CONFIG_ETH_NATIVE_POSIX_INTERFACE_COUNT, DEFINE_ETH_DEV_DATA, _)
|
|||
#define DEFINE_ETH_DEVICE(x, _) \
|
||||
ETH_NET_DEVICE_INIT(eth_native_posix_##x, \
|
||||
CONFIG_ETH_NATIVE_POSIX_DRV_NAME #x, \
|
||||
eth_init, device_pm_control_nop, \
|
||||
eth_init, NULL, \
|
||||
ð_context_data_##x, \
|
||||
NULL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
|
@ -733,7 +733,7 @@ UTIL_LISTIFY(CONFIG_ETH_NATIVE_POSIX_INTERFACE_COUNT, PTP_INIT_FUNC, _)
|
|||
DEVICE_DEFINE(eth_native_posix_ptp_clock_##x, \
|
||||
PTP_CLOCK_NAME "_" #x, \
|
||||
ptp_init_##x, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&ptp_context_##x, \
|
||||
NULL, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -2396,7 +2396,7 @@ static struct eth_sam_dev_data eth0_data = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
eth_initialize, device_pm_control_nop, ð0_data,
|
||||
eth_initialize, NULL, ð0_data,
|
||||
ð0_config, CONFIG_ETH_INIT_PRIORITY, ð_api,
|
||||
GMAC_MTU);
|
||||
|
||||
|
@ -2479,7 +2479,7 @@ static int ptp_gmac_init(const struct device *port)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(gmac_ptp_clock_0, PTP_CLOCK_NAME, ptp_gmac_init,
|
||||
device_pm_control_nop, &ptp_gmac_0_context, NULL, POST_KERNEL,
|
||||
NULL, &ptp_gmac_0_context, NULL, POST_KERNEL,
|
||||
CONFIG_APPLICATION_INIT_PRIORITY, &ptp_api);
|
||||
|
||||
#endif /* CONFIG_PTP_CLOCK_SAM_GMAC */
|
||||
|
|
|
@ -679,6 +679,6 @@ int eth_init(const struct device *dev)
|
|||
static struct eth_context eth_0_context;
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
eth_init, device_pm_control_nop, ð_0_context,
|
||||
eth_init, NULL, ð_0_context,
|
||||
NULL /*ð_config_0*/, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
|
||||
NET_ETH_MTU /*MTU*/);
|
||||
|
|
|
@ -348,7 +348,7 @@ static const struct ethernet_api eth_stellaris_apis = {
|
|||
};
|
||||
|
||||
NET_DEVICE_DT_INST_DEFINE(0,
|
||||
eth_stellaris_dev_init, device_pm_control_nop,
|
||||
eth_stellaris_dev_init, NULL,
|
||||
ð_data, ð_cfg, CONFIG_ETH_INIT_PRIORITY,
|
||||
ð_stellaris_apis, ETHERNET_L2,
|
||||
NET_L2_GET_CTX_TYPE(ETHERNET_L2), NET_ETH_MTU);
|
||||
|
|
|
@ -912,5 +912,5 @@ static struct eth_stm32_hal_dev_data eth0_data = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0, eth_initialize,
|
||||
device_pm_control_nop, ð0_data, ð0_config,
|
||||
NULL, ð0_data, ð0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, ð_api, ETH_STM32_HAL_MTU);
|
||||
|
|
|
@ -589,6 +589,6 @@ static const struct w5500_config w5500_0_config = {
|
|||
};
|
||||
|
||||
ETH_NET_DEVICE_DT_INST_DEFINE(0,
|
||||
w5500_init, device_pm_control_nop,
|
||||
w5500_init, NULL,
|
||||
&w5500_0_runtime, &w5500_0_config,
|
||||
CONFIG_ETH_INIT_PRIORITY, &w5500_api_funcs, NET_ETH_MTU);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue