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

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)