master/device.c
changeset 1305 de3fcbb6773e
parent 1040 d2527675cdd5
child 1313 ed15eef57d5c
--- a/master/device.c	Wed Nov 05 10:16:11 2008 +0000
+++ b/master/device.c	Wed Nov 05 15:05:40 2008 +0000
@@ -170,6 +170,10 @@
         eth = (struct ethhdr *) (device->tx_skb[i]->data);
         memcpy(eth->h_source, net_dev->dev_addr, ETH_ALEN);
     }
+
+#ifdef EC_DEBUG_IF
+    ec_debug_register(&device->dbg, net_dev);
+#endif
 }
 
 /*****************************************************************************/
@@ -182,6 +186,10 @@
 {
     unsigned int i;
 
+#ifdef EC_DEBUG_IF
+    ec_debug_unregister(&device->dbg);
+#endif
+
     device->dev = NULL;
     device->poll = NULL;
     device->module = NULL;