Hi,
This patch is along the same lines as the module-locking patch I made
for the pegasus.o driver, and updates the kaweth.o driver to use the
2.4-style locks.
Cheers,
Chris
--- linux-2.4.16/drivers/usb/kaweth.c.orig Tue Dec 4 23:37:07 2001
+++ linux-2.4.16/drivers/usb/kaweth.c Tue Dec 4 23:38:07 2001
@@ -544,8 +544,6 @@
netif_start_queue(net);
- MOD_INC_USE_COUNT;
-
kaweth_async_set_rx_mode(kaweth);
return 0;
}
@@ -565,8 +563,6 @@
kaweth->status &= ~KAWETH_STATUS_CLOSING;
- MOD_DEC_USE_COUNT;
-
printk("Dev usage: %d", kaweth->dev->refcnt.counter);
return 0;
@@ -890,7 +886,8 @@
memcpy(kaweth->net->dev_addr,
&kaweth->configuration.hw_addr,
sizeof(kaweth->configuration.hw_addr));
-
+
+ kaweth->net->owner = THIS_MODULE;
kaweth->net->priv = kaweth;
kaweth->net->open = kaweth_open;
kaweth->net->stop = kaweth_close;
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel