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:
Gerard Marull-Paretas 2021-04-28 10:43:35 +02:00 committed by Anas Nashif
commit 27ed0fa0c5
13 changed files with 17 additions and 17 deletions

View file

@ -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, \

View file

@ -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 */

View file

@ -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,
&eth_enc28j60_0_runtime, &eth_enc28j60_0_config,
CONFIG_ETH_INIT_PRIORITY, &api_funcs, NET_ETH_MTU);

View file

@ -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);

View file

@ -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, &eth0_data, &eth0_config,
NULL, &eth0_data, &eth0_config,
CONFIG_ETH_INIT_PRIORITY, &eth_api, ETH_GECKO_MTU);

View file

@ -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,
&eth_data, &eth_config, CONFIG_ETH_INIT_PRIORITY, &eth_api,
ETHERNET_L2, NET_L2_GET_CTX_TYPE(ETHERNET_L2), NET_ETH_MTU);

View file

@ -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 */

View file

@ -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, \
&eth_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, \

View file

@ -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, &eth0_data,
eth_initialize, NULL, &eth0_data,
&eth0_config, CONFIG_ETH_INIT_PRIORITY, &eth_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 */

View file

@ -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, &eth_0_context,
eth_init, NULL, &eth_0_context,
NULL /*&eth_config_0*/, CONFIG_ETH_INIT_PRIORITY, &api_funcs,
NET_ETH_MTU /*MTU*/);

View file

@ -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,
&eth_data, &eth_cfg, CONFIG_ETH_INIT_PRIORITY,
&eth_stellaris_apis, ETHERNET_L2,
NET_L2_GET_CTX_TYPE(ETHERNET_L2), NET_ETH_MTU);

View file

@ -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, &eth0_data, &eth0_config,
NULL, &eth0_data, &eth0_config,
CONFIG_ETH_INIT_PRIORITY, &eth_api, ETH_STM32_HAL_MTU);

View file

@ -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);