drivers: eth: initialize ethernet stack in enc424j600 and enc28j60
Initialize ethernet stack in drivers enc424j600 and enc28j60. Fixes: #19398 Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
parent
fcd9612016
commit
2011f73718
2 changed files with 2 additions and 0 deletions
|
@ -647,6 +647,7 @@ static void eth_enc28j60_iface_init(struct net_if *iface)
|
||||||
sizeof(context->mac_address),
|
sizeof(context->mac_address),
|
||||||
NET_LINK_ETHERNET);
|
NET_LINK_ETHERNET);
|
||||||
context->iface = iface;
|
context->iface = iface;
|
||||||
|
ethernet_init(iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ethernet_api api_funcs = {
|
static const struct ethernet_api api_funcs = {
|
||||||
|
|
|
@ -497,6 +497,7 @@ static void enc424j600_iface_init(struct net_if *iface)
|
||||||
sizeof(context->mac_address),
|
sizeof(context->mac_address),
|
||||||
NET_LINK_ETHERNET);
|
NET_LINK_ETHERNET);
|
||||||
context->iface = iface;
|
context->iface = iface;
|
||||||
|
ethernet_init(iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int enc424j600_start_device(struct device *dev)
|
static int enc424j600_start_device(struct device *dev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue