branch | stable-1.5 |
changeset 2632 | 08aa7305b9ba |
parent 2631 | 827abf3c50de |
child 2660 | 161c675135f0 |
--- a/devices/generic.c Thu Feb 19 15:19:29 2015 +0100 +++ b/devices/generic.c Fri Dec 18 12:30:45 2015 +0100 @@ -149,7 +149,12 @@ dev->socket = NULL; dev->rx_buf = NULL; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) + dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null, + NET_NAME_UNKNOWN, ether_setup); +#else dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null, ether_setup); +#endif if (!dev->netdev) { return -ENOMEM; }