diff options
author | Matthias Urlichs <smurf@smurf.noris.de> | 2006-07-19 23:01:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-08-02 19:41:41 -0400 |
commit | a01c452ee3a185a35140939c6dca08d77240b863 (patch) | |
tree | 3012c786826c5e0618d626ce194771158dff5049 /drivers | |
parent | 7c1c2f73e00b5d0413399a14b7ab9e80db94926f (diff) |
USB: Removed 3-port device handler from Option driver
Dead code.
From: Matthias Urlichs <smurf@smurf.noris.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/option.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 1df36cb5e05c..c856e6f40e22 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -108,9 +108,6 @@ static struct usb_device_id option_ids1[] = { | |||
108 | { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) }, | 108 | { USB_DEVICE(ANYDATA_VENDOR_ID, ANYDATA_PRODUCT_ID) }, |
109 | { } /* Terminating entry */ | 109 | { } /* Terminating entry */ |
110 | }; | 110 | }; |
111 | static struct usb_device_id option_ids3[] = { | ||
112 | { } /* Terminating entry */ | ||
113 | }; | ||
114 | 111 | ||
115 | MODULE_DEVICE_TABLE(usb, option_ids); | 112 | MODULE_DEVICE_TABLE(usb, option_ids); |
116 | 113 | ||
@@ -125,33 +122,6 @@ static struct usb_driver option_driver = { | |||
125 | /* The card has three separate interfaces, which the serial driver | 122 | /* The card has three separate interfaces, which the serial driver |
126 | * recognizes separately, thus num_port=1. | 123 | * recognizes separately, thus num_port=1. |
127 | */ | 124 | */ |
128 | static struct usb_serial_driver option_3port_device = { | ||
129 | .driver = { | ||
130 | .owner = THIS_MODULE, | ||
131 | .name = "option3", | ||
132 | }, | ||
133 | .description = "GSM modem (3-port)", | ||
134 | .id_table = option_ids3, | ||
135 | .num_interrupt_in = NUM_DONT_CARE, | ||
136 | .num_bulk_in = NUM_DONT_CARE, | ||
137 | .num_bulk_out = NUM_DONT_CARE, | ||
138 | .num_ports = 3, | ||
139 | .open = option_open, | ||
140 | .close = option_close, | ||
141 | .write = option_write, | ||
142 | .write_room = option_write_room, | ||
143 | .chars_in_buffer = option_chars_in_buffer, | ||
144 | .throttle = option_rx_throttle, | ||
145 | .unthrottle = option_rx_unthrottle, | ||
146 | .ioctl = option_ioctl, | ||
147 | .set_termios = option_set_termios, | ||
148 | .break_ctl = option_break_ctl, | ||
149 | .tiocmget = option_tiocmget, | ||
150 | .tiocmset = option_tiocmset, | ||
151 | .attach = option_startup, | ||
152 | .shutdown = option_shutdown, | ||
153 | .read_int_callback = option_instat_callback, | ||
154 | }; | ||
155 | 125 | ||
156 | static struct usb_serial_driver option_1port_device = { | 126 | static struct usb_serial_driver option_1port_device = { |
157 | .driver = { | 127 | .driver = { |
@@ -220,9 +190,6 @@ static int __init option_init(void) | |||
220 | retval = usb_serial_register(&option_1port_device); | 190 | retval = usb_serial_register(&option_1port_device); |
221 | if (retval) | 191 | if (retval) |
222 | goto failed_1port_device_register; | 192 | goto failed_1port_device_register; |
223 | retval = usb_serial_register(&option_3port_device); | ||
224 | if (retval) | ||
225 | goto failed_3port_device_register; | ||
226 | retval = usb_register(&option_driver); | 193 | retval = usb_register(&option_driver); |
227 | if (retval) | 194 | if (retval) |
228 | goto failed_driver_register; | 195 | goto failed_driver_register; |
@@ -232,8 +199,6 @@ static int __init option_init(void) | |||
232 | return 0; | 199 | return 0; |
233 | 200 | ||
234 | failed_driver_register: | 201 | failed_driver_register: |
235 | usb_serial_deregister (&option_3port_device); | ||
236 | failed_3port_device_register: | ||
237 | usb_serial_deregister (&option_1port_device); | 202 | usb_serial_deregister (&option_1port_device); |
238 | failed_1port_device_register: | 203 | failed_1port_device_register: |
239 | return retval; | 204 | return retval; |
@@ -242,7 +207,6 @@ failed_1port_device_register: | |||
242 | static void __exit option_exit(void) | 207 | static void __exit option_exit(void) |
243 | { | 208 | { |
244 | usb_deregister (&option_driver); | 209 | usb_deregister (&option_driver); |
245 | usb_serial_deregister (&option_3port_device); | ||
246 | usb_serial_deregister (&option_1port_device); | 210 | usb_serial_deregister (&option_1port_device); |
247 | } | 211 | } |
248 | 212 | ||