1
0
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:
Jose Alamos 2021-09-30 10:47:26 +02:00
parent 49527fc994
commit 298f16fee7
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

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