drivers: can: 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:09:53 +02:00 committed by Anas Nashif
commit 51574420fe
5 changed files with 11 additions and 11 deletions

View file

@ -794,7 +794,7 @@ static const struct can_driver_api mcux_flexcan_driver_api = {
static struct mcux_flexcan_data mcux_flexcan_data_##id; \
\
DEVICE_DT_INST_DEFINE(id, &mcux_flexcan_init, \
device_pm_control_nop, &mcux_flexcan_data_##id, \
NULL, &mcux_flexcan_data_##id, \
&mcux_flexcan_config_##id, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&mcux_flexcan_driver_api); \
@ -835,7 +835,7 @@ DT_INST_FOREACH_STATUS_OKAY(FLEXCAN_DEVICE_INIT_MCUX)
} \
\
NET_DEVICE_INIT(socket_can_flexcan_##id, SOCKET_CAN_NAME_##id, \
socket_can_init_##id, device_pm_control_nop, \
socket_can_init_##id, NULL, \
&socket_can_context_##id, NULL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &socket_can_api, \
CANBUS_RAW_L2, NET_L2_GET_CTX_TYPE(CANBUS_RAW_L2), \