patch-2.4.0-test5 linux/drivers/usb/serial/ftdi_sio.c
Next file: linux/drivers/usb/serial/keyspan.c
Previous file: linux/drivers/usb/serial/digi_acceleport.c
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/ftdi_sio.c
- Orig date:
Tue May 23 15:31:35 2000
diff -u --recursive --new-file v2.4.0-test4/linux/drivers/usb/serial/ftdi_sio.c linux/drivers/usb/serial/ftdi_sio.c
@@ -12,6 +12,10 @@
*
* See Documentation/usb/usb-serial.txt for more information on using this driver
*
+ * (07/19/2000) gkh
+ * Added module_init and module_exit functions to handle the fact that this
+ * driver is a loadable module now.
+ *
* (04/04/2000) Bill Ryder
* Fixed bugs in TCGET/TCSET ioctls (by removing them - they are
* handled elsewhere in the serial driver chain).
@@ -719,4 +723,21 @@
dbg("ftdi_sio_ioctl returning 0");
return 0;
} /* ftdi_sio_ioctl */
+
+
+int ftdi_sio_init (void)
+{
+ usb_serial_register (&ftdi_sio_device);
+ return 0;
+}
+
+
+void ftdi_sio_exit (void)
+{
+ usb_serial_deregister (&ftdi_sio_device);
+}
+
+
+module_init(ftdi_sio_init);
+module_exit(ftdi_sio_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)