Commit d50e9cba authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB keyspan driver

  
  general cleanups:
  	- removed commented out function prototypes
  	- removed duplicate function prototypes
  	- removed unneeded #include
  	- added named initializers
  	- merged lots of the individual device structures into general 1, 2, and 4 port structures.
parent f7462f7b
...@@ -175,13 +175,9 @@ struct keyspan_port_private { ...@@ -175,13 +175,9 @@ struct keyspan_port_private {
static int __init keyspan_init (void) static int __init keyspan_init (void)
{ {
usb_serial_register (&keyspan_pre_device); usb_serial_register (&keyspan_pre_device);
usb_serial_register (&keyspan_usa18x_device); usb_serial_register (&keyspan_1port_device);
usb_serial_register (&keyspan_usa19_device); usb_serial_register (&keyspan_2port_device);
usb_serial_register (&keyspan_usa28_device); usb_serial_register (&keyspan_4port_device);
usb_serial_register (&keyspan_usa28x_device);
usb_serial_register (&keyspan_usa28xa_device);
/* We don't need a separate entry for the usa28xb as it appears as a 28x anyway */
usb_serial_register (&keyspan_usa49w_device);
info(DRIVER_VERSION ":" DRIVER_DESC); info(DRIVER_VERSION ":" DRIVER_DESC);
...@@ -191,13 +187,9 @@ static int __init keyspan_init (void) ...@@ -191,13 +187,9 @@ static int __init keyspan_init (void)
static void __exit keyspan_exit (void) static void __exit keyspan_exit (void)
{ {
usb_serial_deregister (&keyspan_pre_device); usb_serial_deregister (&keyspan_pre_device);
usb_serial_deregister (&keyspan_usa18x_device); usb_serial_deregister (&keyspan_1port_device);
usb_serial_deregister (&keyspan_usa19_device); usb_serial_deregister (&keyspan_2port_device);
usb_serial_deregister (&keyspan_usa28_device); usb_serial_deregister (&keyspan_4port_device);
usb_serial_deregister (&keyspan_usa28x_device);
usb_serial_deregister (&keyspan_usa28xa_device);
/* We don't need a separate entry for the usa28xb as it appears as a 28x anyway */
usb_serial_deregister (&keyspan_usa49w_device);
} }
module_init(keyspan_init); module_init(keyspan_init);
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment