master/ethernet.c
changeset 1581 e51cf2af3ff9
parent 1561 89f6cd5b90ff
parent 1579 326d47aa986c
child 1907 dd276ae226b4
--- a/master/ethernet.c	Wed Dec 09 14:40:35 2009 +0100
+++ b/master/ethernet.c	Mon Dec 14 13:11:36 2009 +0100
@@ -34,6 +34,7 @@
 
 /*****************************************************************************/
 
+#include <linux/version.h>
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 
@@ -118,7 +119,8 @@
     eoe->tx_queue_active = 0;
     eoe->tx_queue_size = EC_EOE_TX_QUEUE_SIZE;
     eoe->tx_queued_frames = 0;
-    init_MUTEX(&eoe->tx_queue_sem);
+
+    sema_init(&eoe->tx_queue_sem, 1);
     eoe->tx_frame_number = 0xFF;
     memset(&eoe->stats, 0, sizeof(struct net_device_stats));