patch-2.4.0-test5 linux/drivers/usb/serial/omninet.c
Next file: linux/drivers/usb/serial/usb-serial.h
Previous file: linux/drivers/usb/serial/keyspan_usa28msg.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Wed Jul 19 16:23:35 2000
- Orig file:
v2.4.0-test4/linux/drivers/usb/serial/omninet.c
- Orig date:
Tue May 23 15:31:35 2000
diff -u --recursive --new-file v2.4.0-test4/linux/drivers/usb/serial/omninet.c linux/drivers/usb/serial/omninet.c
@@ -10,6 +10,10 @@
*
* Please report both successes and troubles to the author at omninet@kroah.com
*
+ * (07/19/2000) gkh
+ * Added module_init and module_exit functions to handle the fact that this
+ * driver is a loadable module now.
+ *
*/
#include <linux/config.h>
@@ -332,4 +336,21 @@
return;
}
+
+
+int omninet_init (void)
+{
+ usb_serial_register (&zyxel_omninet_device);
+ return 0;
+}
+
+
+void omninet_exit (void)
+{
+ usb_serial_deregister (&zyxel_omninet_device);
+}
+
+
+module_init(omninet_init);
+module_exit(omninet_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)