--- a/master/ethernet.c Thu Feb 19 15:19:29 2015 +0100
+++ b/master/ethernet.c Fri Dec 18 12:30:45 2015 +0100
@@ -148,7 +148,13 @@
snprintf(eoe->datagram.name, EC_DATAGRAM_NAME_SIZE, name);
- if (!(eoe->dev = alloc_netdev(sizeof(ec_eoe_t *), name, ether_setup))) {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0)
+ eoe->dev = alloc_netdev(sizeof(ec_eoe_t *), name, NET_NAME_UNKNOWN,
+ ether_setup);
+#else
+ eoe->dev = alloc_netdev(sizeof(ec_eoe_t *), name, ether_setup);
+#endif
+ if (!eoe->dev) {
EC_SLAVE_ERR(slave, "Unable to allocate net_device %s"
" for EoE handler!\n", name);
ret = -ENODEV;