net: Replace deprecated kernel init level
Replace NANOKERNEL by POST_KERNEL in the net stack. Change-Id: Iaad7cdbe849741bc1cf18b0ccf7264417a9495d6 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
f0e819faea
commit
89a00ada23
|
@ -1068,7 +1068,7 @@ struct net_if_api {
|
|||
data, cfg_info, prio, api, l2, \
|
||||
l2_ctx_type, mtu) \
|
||||
DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, \
|
||||
cfg_info, NANOKERNEL, prio, api); \
|
||||
cfg_info, POST_KERNEL, prio, api); \
|
||||
NET_L2_DATA_INIT(dev_name, 0, l2_ctx_type); \
|
||||
NET_IF_INIT(dev_name, 0, l2, mtu)
|
||||
|
||||
|
@ -1081,7 +1081,7 @@ struct net_if_api {
|
|||
data, cfg_info, prio, api, l2, \
|
||||
l2_ctx_type, mtu) \
|
||||
DEVICE_AND_API_INIT(dev_name, drv_name, init_fn, data, \
|
||||
cfg_info, NANOKERNEL, prio, api); \
|
||||
cfg_info, POST_KERNEL, prio, api); \
|
||||
NET_L2_DATA_INIT(dev_name, instance, l2_ctx_type); \
|
||||
NET_IF_INIT(dev_name, instance, l2, mtu)
|
||||
|
||||
|
|
|
@ -755,4 +755,4 @@ static int net_init(struct device *unused)
|
|||
return 0;
|
||||
}
|
||||
|
||||
SYS_INIT(net_init, NANOKERNEL, CONFIG_NET_INIT_PRIO);
|
||||
SYS_INIT(net_init, POST_KERNEL, CONFIG_NET_INIT_PRIO);
|
||||
|
|
Loading…
Reference in a new issue