mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
net/gomach: adapt ops->init to handle driver initialization
This commit is contained in:
parent
49527fc994
commit
298f16fee7
@ -2119,7 +2119,11 @@ static int _gomach_init(gnrc_netif_t *netif)
|
||||
{
|
||||
netdev_t *dev;
|
||||
|
||||
gnrc_netif_default_init(netif);
|
||||
int res = gnrc_netif_default_init(netif);
|
||||
if (res < 0) {
|
||||
return res;
|
||||
}
|
||||
|
||||
dev = netif->dev;
|
||||
dev->event_callback = _gomach_event_cb;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user