drivers: can: switch to CAN_DEVICE_DT_INST_DEFINE for remaining drivers
Switch from using DEVICE_DT_DEFINE()/DEVICE_DT_INST_DEFINE() to using CAN_DEVICE_DT_DEFINE()/CAN_DEVICE_DT_INST_DEFINE() for remaining drivers. This unifies CAN controller device driver initialization regardless of the driver implementing CAN statistics support or not. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
c45e9ec715
commit
49ab0b22f0
8 changed files with 33 additions and 33 deletions
|
@ -488,9 +488,9 @@ static const struct can_npl_config can_npl_cfg_##inst = { \
|
|||
\
|
||||
static struct can_npl_data can_npl_data_##inst; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, &can_npl_init, NULL, \
|
||||
&can_npl_data_##inst, &can_npl_cfg_##inst, \
|
||||
POST_KERNEL, CONFIG_CAN_INIT_PRIORITY, \
|
||||
&can_npl_driver_api);
|
||||
CAN_DEVICE_DT_INST_DEFINE(inst, can_npl_init, NULL, \
|
||||
&can_npl_data_##inst, &can_npl_cfg_##inst, \
|
||||
POST_KERNEL, CONFIG_CAN_INIT_PRIORITY, \
|
||||
&can_npl_driver_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(CAN_NATIVE_POSIX_LINUX_INIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue