diff -r 853c83c72f44 -r de3fcbb6773e master/device.c --- 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;