patch-2.4.0-test5 linux/drivers/usb/serial/keyspan_pda.c

Next file: linux/drivers/usb/serial/keyspan_usa28msg.h
Previous file: linux/drivers/usb/serial/keyspan.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/usb/serial/keyspan_pda.c linux/drivers/usb/serial/keyspan_pda.c
@@ -11,6 +11,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.
+ *
  * (03/26/2000) gkh
  *	Split driver up into device specific pieces.
  * 
@@ -696,4 +700,23 @@
 	startup:		keyspan_pda_startup,
 	shutdown:		keyspan_pda_shutdown,
 };
+
+
+int keyspan_pda_init (void)
+{
+	usb_serial_register (&keyspan_pda_fake_device);
+	usb_serial_register (&keyspan_pda_device);
+	return 0;
+}
+
+
+void keyspan_pda_exit (void)
+{
+	usb_serial_deregister (&keyspan_pda_fake_device);
+	usb_serial_deregister (&keyspan_pda_device);
+}
+
+
+module_init(keyspan_pda_init);
+module_exit(keyspan_pda_exit);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)