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:
Johann Fischer 2019-10-19 16:09:17 +02:00 committed by Jukka Rissanen
commit 2011f73718
2 changed files with 2 additions and 0 deletions

View file

@ -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 = {

View file

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