diff options
Diffstat (limited to 'drivers')
40 files changed, 65 insertions, 127 deletions
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index aec61880f36c..7ddde4ddfb4b 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -318,8 +318,7 @@ static void ark3116_set_termios(struct tty_struct *tty, | |||
318 | return; | 318 | return; |
319 | } | 319 | } |
320 | 320 | ||
321 | static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port, | 321 | static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) |
322 | struct file *filp) | ||
323 | { | 322 | { |
324 | struct ktermios tmp_termios; | 323 | struct ktermios tmp_termios; |
325 | struct usb_serial *serial = port->serial; | 324 | struct usb_serial *serial = port->serial; |
@@ -334,7 +333,7 @@ static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port, | |||
334 | return -ENOMEM; | 333 | return -ENOMEM; |
335 | } | 334 | } |
336 | 335 | ||
337 | result = usb_serial_generic_open(tty, port, filp); | 336 | result = usb_serial_generic_open(tty, port); |
338 | if (result) | 337 | if (result) |
339 | goto err_out; | 338 | goto err_out; |
340 | 339 | ||
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index 7033b031b443..a0467bc61627 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -92,7 +92,7 @@ static int debug; | |||
92 | static int belkin_sa_startup(struct usb_serial *serial); | 92 | static int belkin_sa_startup(struct usb_serial *serial); |
93 | static void belkin_sa_release(struct usb_serial *serial); | 93 | static void belkin_sa_release(struct usb_serial *serial); |
94 | static int belkin_sa_open(struct tty_struct *tty, | 94 | static int belkin_sa_open(struct tty_struct *tty, |
95 | struct usb_serial_port *port, struct file *filp); | 95 | struct usb_serial_port *port); |
96 | static void belkin_sa_close(struct usb_serial_port *port); | 96 | static void belkin_sa_close(struct usb_serial_port *port); |
97 | static void belkin_sa_read_int_callback(struct urb *urb); | 97 | static void belkin_sa_read_int_callback(struct urb *urb); |
98 | static void belkin_sa_set_termios(struct tty_struct *tty, | 98 | static void belkin_sa_set_termios(struct tty_struct *tty, |
@@ -213,7 +213,7 @@ static void belkin_sa_release(struct usb_serial *serial) | |||
213 | 213 | ||
214 | 214 | ||
215 | static int belkin_sa_open(struct tty_struct *tty, | 215 | static int belkin_sa_open(struct tty_struct *tty, |
216 | struct usb_serial_port *port, struct file *filp) | 216 | struct usb_serial_port *port) |
217 | { | 217 | { |
218 | int retval = 0; | 218 | int retval = 0; |
219 | 219 | ||
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 2830766f5b39..8c894a7d5dcf 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -300,8 +300,7 @@ static void ch341_close(struct usb_serial_port *port) | |||
300 | 300 | ||
301 | 301 | ||
302 | /* open this device, set default parameters */ | 302 | /* open this device, set default parameters */ |
303 | static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port, | 303 | static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) |
304 | struct file *filp) | ||
305 | { | 304 | { |
306 | struct usb_serial *serial = port->serial; | 305 | struct usb_serial *serial = port->serial; |
307 | struct ch341_private *priv = usb_get_serial_port_data(serial->port[0]); | 306 | struct ch341_private *priv = usb_get_serial_port_data(serial->port[0]); |
@@ -333,7 +332,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port, | |||
333 | return -EPROTO; | 332 | return -EPROTO; |
334 | } | 333 | } |
335 | 334 | ||
336 | r = usb_serial_generic_open(tty, port, filp); | 335 | r = usb_serial_generic_open(tty, port); |
337 | 336 | ||
338 | out: return r; | 337 | out: return r; |
339 | } | 338 | } |
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c index 0e4f2e41ace5..be086e4c76b6 100644 --- a/drivers/usb/serial/console.c +++ b/drivers/usb/serial/console.c | |||
@@ -150,9 +150,9 @@ static int usb_console_setup(struct console *co, char *options) | |||
150 | /* only call the device specific open if this | 150 | /* only call the device specific open if this |
151 | * is the first time the port is opened */ | 151 | * is the first time the port is opened */ |
152 | if (serial->type->open) | 152 | if (serial->type->open) |
153 | retval = serial->type->open(NULL, port, NULL); | 153 | retval = serial->type->open(NULL, port); |
154 | else | 154 | else |
155 | retval = usb_serial_generic_open(NULL, port, NULL); | 155 | retval = usb_serial_generic_open(NULL, port); |
156 | 156 | ||
157 | if (retval) { | 157 | if (retval) { |
158 | err("could not open USB console port"); | 158 | err("could not open USB console port"); |
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index b5275c4a8eed..4a208fe85bc9 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -33,8 +33,7 @@ | |||
33 | /* | 33 | /* |
34 | * Function Prototypes | 34 | * Function Prototypes |
35 | */ | 35 | */ |
36 | static int cp210x_open(struct tty_struct *, struct usb_serial_port *, | 36 | static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *); |
37 | struct file *); | ||
38 | static void cp210x_cleanup(struct usb_serial_port *); | 37 | static void cp210x_cleanup(struct usb_serial_port *); |
39 | static void cp210x_close(struct usb_serial_port *); | 38 | static void cp210x_close(struct usb_serial_port *); |
40 | static void cp210x_get_termios(struct tty_struct *, | 39 | static void cp210x_get_termios(struct tty_struct *, |
@@ -368,8 +367,7 @@ static unsigned int cp210x_quantise_baudrate(unsigned int baud) { | |||
368 | return baud; | 367 | return baud; |
369 | } | 368 | } |
370 | 369 | ||
371 | static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port, | 370 | static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port) |
372 | struct file *filp) | ||
373 | { | 371 | { |
374 | struct usb_serial *serial = port->serial; | 372 | struct usb_serial *serial = port->serial; |
375 | int result; | 373 | int result; |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 336523fd7366..b0f6402a91ca 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -61,7 +61,7 @@ static int cyberjack_startup(struct usb_serial *serial); | |||
61 | static void cyberjack_disconnect(struct usb_serial *serial); | 61 | static void cyberjack_disconnect(struct usb_serial *serial); |
62 | static void cyberjack_release(struct usb_serial *serial); | 62 | static void cyberjack_release(struct usb_serial *serial); |
63 | static int cyberjack_open(struct tty_struct *tty, | 63 | static int cyberjack_open(struct tty_struct *tty, |
64 | struct usb_serial_port *port, struct file *filp); | 64 | struct usb_serial_port *port); |
65 | static void cyberjack_close(struct usb_serial_port *port); | 65 | static void cyberjack_close(struct usb_serial_port *port); |
66 | static int cyberjack_write(struct tty_struct *tty, | 66 | static int cyberjack_write(struct tty_struct *tty, |
67 | struct usb_serial_port *port, const unsigned char *buf, int count); | 67 | struct usb_serial_port *port, const unsigned char *buf, int count); |
@@ -173,7 +173,7 @@ static void cyberjack_release(struct usb_serial *serial) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | static int cyberjack_open(struct tty_struct *tty, | 175 | static int cyberjack_open(struct tty_struct *tty, |
176 | struct usb_serial_port *port, struct file *filp) | 176 | struct usb_serial_port *port) |
177 | { | 177 | { |
178 | struct cyberjack_private *priv; | 178 | struct cyberjack_private *priv; |
179 | unsigned long flags; | 179 | unsigned long flags; |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 59adfe123110..df1adb9a4367 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -172,8 +172,7 @@ static int cypress_earthmate_startup(struct usb_serial *serial); | |||
172 | static int cypress_hidcom_startup(struct usb_serial *serial); | 172 | static int cypress_hidcom_startup(struct usb_serial *serial); |
173 | static int cypress_ca42v2_startup(struct usb_serial *serial); | 173 | static int cypress_ca42v2_startup(struct usb_serial *serial); |
174 | static void cypress_release(struct usb_serial *serial); | 174 | static void cypress_release(struct usb_serial *serial); |
175 | static int cypress_open(struct tty_struct *tty, | 175 | static int cypress_open(struct tty_struct *tty, struct usb_serial_port *port); |
176 | struct usb_serial_port *port, struct file *filp); | ||
177 | static void cypress_close(struct usb_serial_port *port); | 176 | static void cypress_close(struct usb_serial_port *port); |
178 | static void cypress_dtr_rts(struct usb_serial_port *port, int on); | 177 | static void cypress_dtr_rts(struct usb_serial_port *port, int on); |
179 | static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, | 178 | static int cypress_write(struct tty_struct *tty, struct usb_serial_port *port, |
@@ -633,8 +632,7 @@ static void cypress_release(struct usb_serial *serial) | |||
633 | } | 632 | } |
634 | 633 | ||
635 | 634 | ||
636 | static int cypress_open(struct tty_struct *tty, | 635 | static int cypress_open(struct tty_struct *tty, struct usb_serial_port *port) |
637 | struct usb_serial_port *port, struct file *filp) | ||
638 | { | 636 | { |
639 | struct cypress_private *priv = usb_get_serial_port_data(port); | 637 | struct cypress_private *priv = usb_get_serial_port_data(port); |
640 | struct usb_serial *serial = port->serial; | 638 | struct usb_serial *serial = port->serial; |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index f4808091c47c..ab3dd991586b 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -453,8 +453,7 @@ static int digi_write(struct tty_struct *tty, struct usb_serial_port *port, | |||
453 | static void digi_write_bulk_callback(struct urb *urb); | 453 | static void digi_write_bulk_callback(struct urb *urb); |
454 | static int digi_write_room(struct tty_struct *tty); | 454 | static int digi_write_room(struct tty_struct *tty); |
455 | static int digi_chars_in_buffer(struct tty_struct *tty); | 455 | static int digi_chars_in_buffer(struct tty_struct *tty); |
456 | static int digi_open(struct tty_struct *tty, struct usb_serial_port *port, | 456 | static int digi_open(struct tty_struct *tty, struct usb_serial_port *port); |
457 | struct file *filp); | ||
458 | static void digi_close(struct usb_serial_port *port); | 457 | static void digi_close(struct usb_serial_port *port); |
459 | static int digi_carrier_raised(struct usb_serial_port *port); | 458 | static int digi_carrier_raised(struct usb_serial_port *port); |
460 | static void digi_dtr_rts(struct usb_serial_port *port, int on); | 459 | static void digi_dtr_rts(struct usb_serial_port *port, int on); |
@@ -1347,8 +1346,7 @@ static int digi_carrier_raised(struct usb_serial_port *port) | |||
1347 | return 0; | 1346 | return 0; |
1348 | } | 1347 | } |
1349 | 1348 | ||
1350 | static int digi_open(struct tty_struct *tty, struct usb_serial_port *port, | 1349 | static int digi_open(struct tty_struct *tty, struct usb_serial_port *port) |
1351 | struct file *filp) | ||
1352 | { | 1350 | { |
1353 | int ret; | 1351 | int ret; |
1354 | unsigned char buf[32]; | 1352 | unsigned char buf[32]; |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 80cb3471adbe..da559a773b51 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -79,8 +79,7 @@ static int debug; | |||
79 | #define EMPEG_PRODUCT_ID 0x0001 | 79 | #define EMPEG_PRODUCT_ID 0x0001 |
80 | 80 | ||
81 | /* function prototypes for an empeg-car player */ | 81 | /* function prototypes for an empeg-car player */ |
82 | static int empeg_open(struct tty_struct *tty, struct usb_serial_port *port, | 82 | static int empeg_open(struct tty_struct *tty, struct usb_serial_port *port); |
83 | struct file *filp); | ||
84 | static void empeg_close(struct usb_serial_port *port); | 83 | static void empeg_close(struct usb_serial_port *port); |
85 | static int empeg_write(struct tty_struct *tty, struct usb_serial_port *port, | 84 | static int empeg_write(struct tty_struct *tty, struct usb_serial_port *port, |
86 | const unsigned char *buf, | 85 | const unsigned char *buf, |
@@ -142,8 +141,7 @@ static int bytes_out; | |||
142 | /****************************************************************************** | 141 | /****************************************************************************** |
143 | * Empeg specific driver functions | 142 | * Empeg specific driver functions |
144 | ******************************************************************************/ | 143 | ******************************************************************************/ |
145 | static int empeg_open(struct tty_struct *tty, struct usb_serial_port *port, | 144 | static int empeg_open(struct tty_struct *tty,struct usb_serial_port *port) |
146 | struct file *filp) | ||
147 | { | 145 | { |
148 | struct usb_serial *serial = port->serial; | 146 | struct usb_serial *serial = port->serial; |
149 | int result = 0; | 147 | int result = 0; |
@@ -151,7 +149,7 @@ static int empeg_open(struct tty_struct *tty, struct usb_serial_port *port, | |||
151 | dbg("%s - port %d", __func__, port->number); | 149 | dbg("%s - port %d", __func__, port->number); |
152 | 150 | ||
153 | /* Force default termio settings */ | 151 | /* Force default termio settings */ |
154 | empeg_set_termios(tty, port, NULL) ; | 152 | empeg_set_termios(tty, port, NULL); |
155 | 153 | ||
156 | bytes_in = 0; | 154 | bytes_in = 0; |
157 | bytes_out = 0; | 155 | bytes_out = 0; |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 8fec5d4455c9..76a17f915eef 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -747,8 +747,7 @@ static int ftdi_sio_probe(struct usb_serial *serial, | |||
747 | const struct usb_device_id *id); | 747 | const struct usb_device_id *id); |
748 | static int ftdi_sio_port_probe(struct usb_serial_port *port); | 748 | static int ftdi_sio_port_probe(struct usb_serial_port *port); |
749 | static int ftdi_sio_port_remove(struct usb_serial_port *port); | 749 | static int ftdi_sio_port_remove(struct usb_serial_port *port); |
750 | static int ftdi_open(struct tty_struct *tty, | 750 | static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port); |
751 | struct usb_serial_port *port, struct file *filp); | ||
752 | static void ftdi_close(struct usb_serial_port *port); | 751 | static void ftdi_close(struct usb_serial_port *port); |
753 | static void ftdi_dtr_rts(struct usb_serial_port *port, int on); | 752 | static void ftdi_dtr_rts(struct usb_serial_port *port, int on); |
754 | static int ftdi_write(struct tty_struct *tty, struct usb_serial_port *port, | 753 | static int ftdi_write(struct tty_struct *tty, struct usb_serial_port *port, |
@@ -1680,8 +1679,7 @@ static int ftdi_sio_port_remove(struct usb_serial_port *port) | |||
1680 | return 0; | 1679 | return 0; |
1681 | } | 1680 | } |
1682 | 1681 | ||
1683 | static int ftdi_open(struct tty_struct *tty, | 1682 | static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port) |
1684 | struct usb_serial_port *port, struct file *filp) | ||
1685 | { /* ftdi_open */ | 1683 | { /* ftdi_open */ |
1686 | struct usb_device *dev = port->serial->dev; | 1684 | struct usb_device *dev = port->serial->dev; |
1687 | struct ftdi_private *priv = usb_get_serial_port_data(port); | 1685 | struct ftdi_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index 8839f1c70b7f..20432d345529 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -933,8 +933,7 @@ static int garmin_init_session(struct usb_serial_port *port) | |||
933 | 933 | ||
934 | 934 | ||
935 | 935 | ||
936 | static int garmin_open(struct tty_struct *tty, | 936 | static int garmin_open(struct tty_struct *tty, struct usb_serial_port *port) |
937 | struct usb_serial_port *port, struct file *filp) | ||
938 | { | 937 | { |
939 | unsigned long flags; | 938 | unsigned long flags; |
940 | int status = 0; | 939 | int status = 0; |
diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index ce57f6a32bdf..d9398e9f30ce 100644 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c | |||
@@ -114,8 +114,7 @@ void usb_serial_generic_deregister(void) | |||
114 | #endif | 114 | #endif |
115 | } | 115 | } |
116 | 116 | ||
117 | int usb_serial_generic_open(struct tty_struct *tty, | 117 | int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) |
118 | struct usb_serial_port *port, struct file *filp) | ||
119 | { | 118 | { |
120 | struct usb_serial *serial = port->serial; | 119 | struct usb_serial *serial = port->serial; |
121 | int result = 0; | 120 | int result = 0; |
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index 0191693625d6..dc0f832657e6 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -205,8 +205,7 @@ static void edge_bulk_out_data_callback(struct urb *urb); | |||
205 | static void edge_bulk_out_cmd_callback(struct urb *urb); | 205 | static void edge_bulk_out_cmd_callback(struct urb *urb); |
206 | 206 | ||
207 | /* function prototypes for the usbserial callbacks */ | 207 | /* function prototypes for the usbserial callbacks */ |
208 | static int edge_open(struct tty_struct *tty, struct usb_serial_port *port, | 208 | static int edge_open(struct tty_struct *tty, struct usb_serial_port *port); |
209 | struct file *filp); | ||
210 | static void edge_close(struct usb_serial_port *port); | 209 | static void edge_close(struct usb_serial_port *port); |
211 | static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, | 210 | static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, |
212 | const unsigned char *buf, int count); | 211 | const unsigned char *buf, int count); |
@@ -852,8 +851,7 @@ static void edge_bulk_out_cmd_callback(struct urb *urb) | |||
852 | * If successful, we return 0 | 851 | * If successful, we return 0 |
853 | * Otherwise we return a negative error number. | 852 | * Otherwise we return a negative error number. |
854 | *****************************************************************************/ | 853 | *****************************************************************************/ |
855 | static int edge_open(struct tty_struct *tty, | 854 | static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) |
856 | struct usb_serial_port *port, struct file *filp) | ||
857 | { | 855 | { |
858 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 856 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
859 | struct usb_serial *serial; | 857 | struct usb_serial *serial; |
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index e8bc42f92e79..d4cc0f7af400 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -1831,8 +1831,7 @@ static void edge_bulk_out_callback(struct urb *urb) | |||
1831 | tty_kref_put(tty); | 1831 | tty_kref_put(tty); |
1832 | } | 1832 | } |
1833 | 1833 | ||
1834 | static int edge_open(struct tty_struct *tty, | 1834 | static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) |
1835 | struct usb_serial_port *port, struct file *filp) | ||
1836 | { | 1835 | { |
1837 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); | 1836 | struct edgeport_port *edge_port = usb_get_serial_port_data(port); |
1838 | struct edgeport_serial *edge_serial; | 1837 | struct edgeport_serial *edge_serial; |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 2545d45ce16f..24fcc64b837d 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -75,7 +75,7 @@ static int initial_wait; | |||
75 | 75 | ||
76 | /* Function prototypes for an ipaq */ | 76 | /* Function prototypes for an ipaq */ |
77 | static int ipaq_open(struct tty_struct *tty, | 77 | static int ipaq_open(struct tty_struct *tty, |
78 | struct usb_serial_port *port, struct file *filp); | 78 | struct usb_serial_port *port); |
79 | static void ipaq_close(struct usb_serial_port *port); | 79 | static void ipaq_close(struct usb_serial_port *port); |
80 | static int ipaq_calc_num_ports(struct usb_serial *serial); | 80 | static int ipaq_calc_num_ports(struct usb_serial *serial); |
81 | static int ipaq_startup(struct usb_serial *serial); | 81 | static int ipaq_startup(struct usb_serial *serial); |
@@ -587,7 +587,7 @@ static int bytes_in; | |||
587 | static int bytes_out; | 587 | static int bytes_out; |
588 | 588 | ||
589 | static int ipaq_open(struct tty_struct *tty, | 589 | static int ipaq_open(struct tty_struct *tty, |
590 | struct usb_serial_port *port, struct file *filp) | 590 | struct usb_serial_port *port) |
591 | { | 591 | { |
592 | struct usb_serial *serial = port->serial; | 592 | struct usb_serial *serial = port->serial; |
593 | struct ipaq_private *priv; | 593 | struct ipaq_private *priv; |
@@ -628,11 +628,6 @@ static int ipaq_open(struct tty_struct *tty, | |||
628 | priv->free_len += PACKET_SIZE; | 628 | priv->free_len += PACKET_SIZE; |
629 | } | 629 | } |
630 | 630 | ||
631 | if (tty) { | ||
632 | /* FIXME: These two are bogus */ | ||
633 | tty->raw = 1; | ||
634 | tty->real_raw = 1; | ||
635 | } | ||
636 | /* | 631 | /* |
637 | * Lose the small buffers usbserial provides. Make larger ones. | 632 | * Lose the small buffers usbserial provides. Make larger ones. |
638 | */ | 633 | */ |
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 29ad038b9c8d..727d323f092a 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -193,8 +193,7 @@ static void ipw_read_bulk_callback(struct urb *urb) | |||
193 | return; | 193 | return; |
194 | } | 194 | } |
195 | 195 | ||
196 | static int ipw_open(struct tty_struct *tty, | 196 | static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) |
197 | struct usb_serial_port *port, struct file *filp) | ||
198 | { | 197 | { |
199 | struct usb_device *dev = port->serial->dev; | 198 | struct usb_device *dev = port->serial->dev; |
200 | u8 buf_flow_static[16] = IPW_BYTES_FLOWINIT; | 199 | u8 buf_flow_static[16] = IPW_BYTES_FLOWINIT; |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 66009b6b763a..95d8d26b9a44 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -86,8 +86,7 @@ static int buffer_size; | |||
86 | static int xbof = -1; | 86 | static int xbof = -1; |
87 | 87 | ||
88 | static int ir_startup (struct usb_serial *serial); | 88 | static int ir_startup (struct usb_serial *serial); |
89 | static int ir_open(struct tty_struct *tty, struct usb_serial_port *port, | 89 | static int ir_open(struct tty_struct *tty, struct usb_serial_port *port); |
90 | struct file *filep); | ||
91 | static void ir_close(struct usb_serial_port *port); | 90 | static void ir_close(struct usb_serial_port *port); |
92 | static int ir_write(struct tty_struct *tty, struct usb_serial_port *port, | 91 | static int ir_write(struct tty_struct *tty, struct usb_serial_port *port, |
93 | const unsigned char *buf, int count); | 92 | const unsigned char *buf, int count); |
@@ -296,8 +295,7 @@ static int ir_startup(struct usb_serial *serial) | |||
296 | return 0; | 295 | return 0; |
297 | } | 296 | } |
298 | 297 | ||
299 | static int ir_open(struct tty_struct *tty, | 298 | static int ir_open(struct tty_struct *tty, struct usb_serial_port *port) |
300 | struct usb_serial_port *port, struct file *filp) | ||
301 | { | 299 | { |
302 | char *buffer; | 300 | char *buffer; |
303 | int result = 0; | 301 | int result = 0; |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 96873a7a32b0..f3f9be0469c5 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -1018,8 +1018,7 @@ static void iuu_close(struct usb_serial_port *port) | |||
1018 | } | 1018 | } |
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | static int iuu_open(struct tty_struct *tty, | 1021 | static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port) |
1022 | struct usb_serial_port *port, struct file *filp) | ||
1023 | { | 1022 | { |
1024 | struct usb_serial *serial = port->serial; | 1023 | struct usb_serial *serial = port->serial; |
1025 | u8 *buf; | 1024 | u8 *buf; |
@@ -1077,7 +1076,7 @@ static int iuu_open(struct tty_struct *tty, | |||
1077 | tty->termios->c_iflag = 0; | 1076 | tty->termios->c_iflag = 0; |
1078 | priv->termios_initialized = 1; | 1077 | priv->termios_initialized = 1; |
1079 | priv->poll = 0; | 1078 | priv->poll = 0; |
1080 | } | 1079 | } |
1081 | spin_unlock_irqrestore(&priv->lock, flags); | 1080 | spin_unlock_irqrestore(&priv->lock, flags); |
1082 | 1081 | ||
1083 | /* initialize writebuf */ | 1082 | /* initialize writebuf */ |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 2594b8743d3f..f8c4b07033ff 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -1209,8 +1209,7 @@ static int keyspan_write_room(struct tty_struct *tty) | |||
1209 | } | 1209 | } |
1210 | 1210 | ||
1211 | 1211 | ||
1212 | static int keyspan_open(struct tty_struct *tty, | 1212 | static int keyspan_open(struct tty_struct *tty, struct usb_serial_port *port) |
1213 | struct usb_serial_port *port, struct file *filp) | ||
1214 | { | 1213 | { |
1215 | struct keyspan_port_private *p_priv; | 1214 | struct keyspan_port_private *p_priv; |
1216 | struct keyspan_serial_private *s_priv; | 1215 | struct keyspan_serial_private *s_priv; |
diff --git a/drivers/usb/serial/keyspan.h b/drivers/usb/serial/keyspan.h index 3107ed15af64..30771e5b3973 100644 --- a/drivers/usb/serial/keyspan.h +++ b/drivers/usb/serial/keyspan.h | |||
@@ -36,8 +36,7 @@ | |||
36 | 36 | ||
37 | /* Function prototypes for Keyspan serial converter */ | 37 | /* Function prototypes for Keyspan serial converter */ |
38 | static int keyspan_open (struct tty_struct *tty, | 38 | static int keyspan_open (struct tty_struct *tty, |
39 | struct usb_serial_port *port, | 39 | struct usb_serial_port *port); |
40 | struct file *filp); | ||
41 | static void keyspan_close (struct usb_serial_port *port); | 40 | static void keyspan_close (struct usb_serial_port *port); |
42 | static void keyspan_dtr_rts (struct usb_serial_port *port, int on); | 41 | static void keyspan_dtr_rts (struct usb_serial_port *port, int on); |
43 | static int keyspan_startup (struct usb_serial *serial); | 42 | static int keyspan_startup (struct usb_serial *serial); |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index d0b12e40c2b1..257c16cc6b2a 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -681,7 +681,7 @@ static int keyspan_pda_carrier_raised(struct usb_serial_port *port) | |||
681 | 681 | ||
682 | 682 | ||
683 | static int keyspan_pda_open(struct tty_struct *tty, | 683 | static int keyspan_pda_open(struct tty_struct *tty, |
684 | struct usb_serial_port *port, struct file *filp) | 684 | struct usb_serial_port *port) |
685 | { | 685 | { |
686 | struct usb_serial *serial = port->serial; | 686 | struct usb_serial *serial = port->serial; |
687 | unsigned char room; | 687 | unsigned char room; |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 0f44bb8e8d4f..a61673133d7d 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -75,8 +75,7 @@ static int debug; | |||
75 | static int klsi_105_startup(struct usb_serial *serial); | 75 | static int klsi_105_startup(struct usb_serial *serial); |
76 | static void klsi_105_disconnect(struct usb_serial *serial); | 76 | static void klsi_105_disconnect(struct usb_serial *serial); |
77 | static void klsi_105_release(struct usb_serial *serial); | 77 | static void klsi_105_release(struct usb_serial *serial); |
78 | static int klsi_105_open(struct tty_struct *tty, | 78 | static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port); |
79 | struct usb_serial_port *port, struct file *filp); | ||
80 | static void klsi_105_close(struct usb_serial_port *port); | 79 | static void klsi_105_close(struct usb_serial_port *port); |
81 | static int klsi_105_write(struct tty_struct *tty, | 80 | static int klsi_105_write(struct tty_struct *tty, |
82 | struct usb_serial_port *port, const unsigned char *buf, int count); | 81 | struct usb_serial_port *port, const unsigned char *buf, int count); |
@@ -358,8 +357,7 @@ static void klsi_105_release(struct usb_serial *serial) | |||
358 | } | 357 | } |
359 | } /* klsi_105_release */ | 358 | } /* klsi_105_release */ |
360 | 359 | ||
361 | static int klsi_105_open(struct tty_struct *tty, | 360 | static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port) |
362 | struct usb_serial_port *port, struct file *filp) | ||
363 | { | 361 | { |
364 | struct klsi_105_private *priv = usb_get_serial_port_data(port); | 362 | struct klsi_105_private *priv = usb_get_serial_port_data(port); |
365 | int retval = 0; | 363 | int retval = 0; |
@@ -371,10 +369,6 @@ static int klsi_105_open(struct tty_struct *tty, | |||
371 | 369 | ||
372 | dbg("%s port %d", __func__, port->number); | 370 | dbg("%s port %d", __func__, port->number); |
373 | 371 | ||
374 | /* force low_latency on so that our tty_push actually forces | ||
375 | * the data through | ||
376 | * tty->low_latency = 1; */ | ||
377 | |||
378 | /* Do a defined restart: | 372 | /* Do a defined restart: |
379 | * Set up sane default baud rate and send the 'READ_ON' | 373 | * Set up sane default baud rate and send the 'READ_ON' |
380 | * vendor command. | 374 | * vendor command. |
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index 6db0e561f680..97901578343a 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -70,8 +70,7 @@ static int debug; | |||
70 | /* Function prototypes */ | 70 | /* Function prototypes */ |
71 | static int kobil_startup(struct usb_serial *serial); | 71 | static int kobil_startup(struct usb_serial *serial); |
72 | static void kobil_release(struct usb_serial *serial); | 72 | static void kobil_release(struct usb_serial *serial); |
73 | static int kobil_open(struct tty_struct *tty, | 73 | static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port); |
74 | struct usb_serial_port *port, struct file *filp); | ||
75 | static void kobil_close(struct usb_serial_port *port); | 74 | static void kobil_close(struct usb_serial_port *port); |
76 | static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, | 75 | static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, |
77 | const unsigned char *buf, int count); | 76 | const unsigned char *buf, int count); |
@@ -211,8 +210,7 @@ static void kobil_release(struct usb_serial *serial) | |||
211 | } | 210 | } |
212 | 211 | ||
213 | 212 | ||
214 | static int kobil_open(struct tty_struct *tty, | 213 | static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port) |
215 | struct usb_serial_port *port, struct file *filp) | ||
216 | { | 214 | { |
217 | int result = 0; | 215 | int result = 0; |
218 | struct kobil_private *priv; | 216 | struct kobil_private *priv; |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index d8825e159aa5..d501aefa2628 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -93,8 +93,7 @@ static int debug; | |||
93 | */ | 93 | */ |
94 | static int mct_u232_startup(struct usb_serial *serial); | 94 | static int mct_u232_startup(struct usb_serial *serial); |
95 | static void mct_u232_release(struct usb_serial *serial); | 95 | static void mct_u232_release(struct usb_serial *serial); |
96 | static int mct_u232_open(struct tty_struct *tty, | 96 | static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port); |
97 | struct usb_serial_port *port, struct file *filp); | ||
98 | static void mct_u232_close(struct usb_serial_port *port); | 97 | static void mct_u232_close(struct usb_serial_port *port); |
99 | static void mct_u232_dtr_rts(struct usb_serial_port *port, int on); | 98 | static void mct_u232_dtr_rts(struct usb_serial_port *port, int on); |
100 | static void mct_u232_read_int_callback(struct urb *urb); | 99 | static void mct_u232_read_int_callback(struct urb *urb); |
@@ -421,8 +420,7 @@ static void mct_u232_release(struct usb_serial *serial) | |||
421 | } | 420 | } |
422 | } /* mct_u232_release */ | 421 | } /* mct_u232_release */ |
423 | 422 | ||
424 | static int mct_u232_open(struct tty_struct *tty, | 423 | static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port) |
425 | struct usb_serial_port *port, struct file *filp) | ||
426 | { | 424 | { |
427 | struct usb_serial *serial = port->serial; | 425 | struct usb_serial *serial = port->serial; |
428 | struct mct_u232_private *priv = usb_get_serial_port_data(port); | 426 | struct mct_u232_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 4342a8a0eac9..763e32a44be0 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -319,8 +319,7 @@ static int send_mos_cmd(struct usb_serial *serial, __u8 request, __u16 value, | |||
319 | return status; | 319 | return status; |
320 | } | 320 | } |
321 | 321 | ||
322 | static int mos7720_open(struct tty_struct *tty, | 322 | static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) |
323 | struct usb_serial_port *port, struct file *filp) | ||
324 | { | 323 | { |
325 | struct usb_serial *serial; | 324 | struct usb_serial *serial; |
326 | struct usb_serial_port *port0; | 325 | struct usb_serial_port *port0; |
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index b93f0f992d9f..f11abf52be7d 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -824,8 +824,7 @@ static int mos7840_serial_probe(struct usb_serial *serial, | |||
824 | * Otherwise we return a negative error number. | 824 | * Otherwise we return a negative error number. |
825 | *****************************************************************************/ | 825 | *****************************************************************************/ |
826 | 826 | ||
827 | static int mos7840_open(struct tty_struct *tty, | 827 | static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) |
828 | struct usb_serial_port *port, struct file *filp) | ||
829 | { | 828 | { |
830 | int response; | 829 | int response; |
831 | int j; | 830 | int j; |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index f5f3751a888c..5ceaa4c6be09 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -80,8 +80,7 @@ exit: | |||
80 | __func__, result); | 80 | __func__, result); |
81 | } | 81 | } |
82 | 82 | ||
83 | static int navman_open(struct tty_struct *tty, | 83 | static int navman_open(struct tty_struct *tty, struct usb_serial_port *port) |
84 | struct usb_serial_port *port, struct file *filp) | ||
85 | { | 84 | { |
86 | int result = 0; | 85 | int result = 0; |
87 | 86 | ||
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 56857ddbd70b..062265038bf0 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -64,8 +64,7 @@ static int debug; | |||
64 | #define BT_IGNITIONPRO_ID 0x2000 | 64 | #define BT_IGNITIONPRO_ID 0x2000 |
65 | 65 | ||
66 | /* function prototypes */ | 66 | /* function prototypes */ |
67 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port, | 67 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port); |
68 | struct file *filp); | ||
69 | static void omninet_close(struct usb_serial_port *port); | 68 | static void omninet_close(struct usb_serial_port *port); |
70 | static void omninet_read_bulk_callback(struct urb *urb); | 69 | static void omninet_read_bulk_callback(struct urb *urb); |
71 | static void omninet_write_bulk_callback(struct urb *urb); | 70 | static void omninet_write_bulk_callback(struct urb *urb); |
@@ -163,8 +162,7 @@ static int omninet_attach(struct usb_serial *serial) | |||
163 | return 0; | 162 | return 0; |
164 | } | 163 | } |
165 | 164 | ||
166 | static int omninet_open(struct tty_struct *tty, | 165 | static int omninet_open(struct tty_struct *tty, struct usb_serial_port *port) |
167 | struct usb_serial_port *port, struct file *filp) | ||
168 | { | 166 | { |
169 | struct usb_serial *serial = port->serial; | 167 | struct usb_serial *serial = port->serial; |
170 | struct usb_serial_port *wport; | 168 | struct usb_serial_port *wport; |
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index 336bba79ad32..1085a577c5c1 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -144,8 +144,7 @@ exit: | |||
144 | spin_unlock(&priv->lock); | 144 | spin_unlock(&priv->lock); |
145 | } | 145 | } |
146 | 146 | ||
147 | static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port, | 147 | static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port) |
148 | struct file *filp) | ||
149 | { | 148 | { |
150 | struct opticon_private *priv = usb_get_serial_data(port->serial); | 149 | struct opticon_private *priv = usb_get_serial_data(port->serial); |
151 | unsigned long flags; | 150 | unsigned long flags; |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index c784ddbe7b61..fe47051dbef2 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -45,8 +45,7 @@ | |||
45 | /* Function prototypes */ | 45 | /* Function prototypes */ |
46 | static int option_probe(struct usb_serial *serial, | 46 | static int option_probe(struct usb_serial *serial, |
47 | const struct usb_device_id *id); | 47 | const struct usb_device_id *id); |
48 | static int option_open(struct tty_struct *tty, struct usb_serial_port *port, | 48 | static int option_open(struct tty_struct *tty, struct usb_serial_port *port); |
49 | struct file *filp); | ||
50 | static void option_close(struct usb_serial_port *port); | 49 | static void option_close(struct usb_serial_port *port); |
51 | static void option_dtr_rts(struct usb_serial_port *port, int on); | 50 | static void option_dtr_rts(struct usb_serial_port *port, int on); |
52 | 51 | ||
@@ -961,8 +960,7 @@ static int option_chars_in_buffer(struct tty_struct *tty) | |||
961 | return data_len; | 960 | return data_len; |
962 | } | 961 | } |
963 | 962 | ||
964 | static int option_open(struct tty_struct *tty, | 963 | static int option_open(struct tty_struct *tty, struct usb_serial_port *port) |
965 | struct usb_serial_port *port, struct file *filp) | ||
966 | { | 964 | { |
967 | struct option_port_private *portdata; | 965 | struct option_port_private *portdata; |
968 | int i, err; | 966 | int i, err; |
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 3cece27325e7..e90f88a3b040 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -141,8 +141,7 @@ struct oti6858_control_pkt { | |||
141 | && ((a)->frame_fmt == (priv)->pending_setup.frame_fmt)) | 141 | && ((a)->frame_fmt == (priv)->pending_setup.frame_fmt)) |
142 | 142 | ||
143 | /* function prototypes */ | 143 | /* function prototypes */ |
144 | static int oti6858_open(struct tty_struct *tty, | 144 | static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port); |
145 | struct usb_serial_port *port, struct file *filp); | ||
146 | static void oti6858_close(struct usb_serial_port *port); | 145 | static void oti6858_close(struct usb_serial_port *port); |
147 | static void oti6858_set_termios(struct tty_struct *tty, | 146 | static void oti6858_set_termios(struct tty_struct *tty, |
148 | struct usb_serial_port *port, struct ktermios *old); | 147 | struct usb_serial_port *port, struct ktermios *old); |
@@ -566,8 +565,7 @@ static void oti6858_set_termios(struct tty_struct *tty, | |||
566 | spin_unlock_irqrestore(&priv->lock, flags); | 565 | spin_unlock_irqrestore(&priv->lock, flags); |
567 | } | 566 | } |
568 | 567 | ||
569 | static int oti6858_open(struct tty_struct *tty, | 568 | static int oti6858_open(struct tty_struct *tty, struct usb_serial_port *port) |
570 | struct usb_serial_port *port, struct file *filp) | ||
571 | { | 569 | { |
572 | struct oti6858_private *priv = usb_get_serial_port_data(port); | 570 | struct oti6858_private *priv = usb_get_serial_port_data(port); |
573 | struct ktermios tmp_termios; | 571 | struct ktermios tmp_termios; |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 3e86815b2705..a63ea99936f7 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -691,8 +691,7 @@ static void pl2303_close(struct usb_serial_port *port) | |||
691 | 691 | ||
692 | } | 692 | } |
693 | 693 | ||
694 | static int pl2303_open(struct tty_struct *tty, | 694 | static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port) |
695 | struct usb_serial_port *port, struct file *filp) | ||
696 | { | 695 | { |
697 | struct ktermios tmp_termios; | 696 | struct ktermios tmp_termios; |
698 | struct usb_serial *serial = port->serial; | 697 | struct usb_serial *serial = port->serial; |
@@ -714,8 +713,6 @@ static int pl2303_open(struct tty_struct *tty, | |||
714 | if (tty) | 713 | if (tty) |
715 | pl2303_set_termios(tty, port, &tmp_termios); | 714 | pl2303_set_termios(tty, port, &tmp_termios); |
716 | 715 | ||
717 | /* FIXME: need to assert RTS and DTR if CRTSCTS off */ | ||
718 | |||
719 | dbg("%s - submitting read urb", __func__); | 716 | dbg("%s - submitting read urb", __func__); |
720 | port->read_urb->dev = serial->dev; | 717 | port->read_urb->dev = serial->dev; |
721 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); | 718 | result = usb_submit_urb(port->read_urb, GFP_KERNEL); |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index f48d05e0acc1..55391bbe1230 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -734,8 +734,7 @@ static void sierra_close(struct usb_serial_port *port) | |||
734 | } | 734 | } |
735 | } | 735 | } |
736 | 736 | ||
737 | static int sierra_open(struct tty_struct *tty, | 737 | static int sierra_open(struct tty_struct *tty, struct usb_serial_port *port) |
738 | struct usb_serial_port *port, struct file *filp) | ||
739 | { | 738 | { |
740 | struct sierra_port_private *portdata; | 739 | struct sierra_port_private *portdata; |
741 | struct usb_serial *serial = port->serial; | 740 | struct usb_serial *serial = port->serial; |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 3c249d8e8b8e..8b312a05a353 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -623,8 +623,7 @@ static void spcp8x5_set_termios(struct tty_struct *tty, | |||
623 | 623 | ||
624 | /* open the serial port. do some usb system call. set termios and get the line | 624 | /* open the serial port. do some usb system call. set termios and get the line |
625 | * status of the device. then submit the read urb */ | 625 | * status of the device. then submit the read urb */ |
626 | static int spcp8x5_open(struct tty_struct *tty, | 626 | static int spcp8x5_open(struct tty_struct *tty, struct usb_serial_port *port) |
627 | struct usb_serial_port *port, struct file *filp) | ||
628 | { | 627 | { |
629 | struct ktermios tmp_termios; | 628 | struct ktermios tmp_termios; |
630 | struct usb_serial *serial = port->serial; | 629 | struct usb_serial *serial = port->serial; |
@@ -658,8 +657,6 @@ static int spcp8x5_open(struct tty_struct *tty, | |||
658 | priv->line_status = status & 0xf0 ; | 657 | priv->line_status = status & 0xf0 ; |
659 | spin_unlock_irqrestore(&priv->lock, flags); | 658 | spin_unlock_irqrestore(&priv->lock, flags); |
660 | 659 | ||
661 | /* FIXME: need to assert RTS and DTR if CRTSCTS off */ | ||
662 | |||
663 | dbg("%s - submitting read urb", __func__); | 660 | dbg("%s - submitting read urb", __func__); |
664 | port->read_urb->dev = serial->dev; | 661 | port->read_urb->dev = serial->dev; |
665 | ret = usb_submit_urb(port->read_urb, GFP_KERNEL); | 662 | ret = usb_submit_urb(port->read_urb, GFP_KERNEL); |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index 6157fac9366b..cb7e95f9fcbf 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -124,8 +124,7 @@ exit: | |||
124 | spin_unlock(&priv->lock); | 124 | spin_unlock(&priv->lock); |
125 | } | 125 | } |
126 | 126 | ||
127 | static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port, | 127 | static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port) |
128 | struct file *filp) | ||
129 | { | 128 | { |
130 | struct symbol_private *priv = usb_get_serial_data(port->serial); | 129 | struct symbol_private *priv = usb_get_serial_data(port->serial); |
131 | unsigned long flags; | 130 | unsigned long flags; |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 3bc609fe2242..1e9dc8821698 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -98,8 +98,7 @@ struct ti_device { | |||
98 | 98 | ||
99 | static int ti_startup(struct usb_serial *serial); | 99 | static int ti_startup(struct usb_serial *serial); |
100 | static void ti_release(struct usb_serial *serial); | 100 | static void ti_release(struct usb_serial *serial); |
101 | static int ti_open(struct tty_struct *tty, struct usb_serial_port *port, | 101 | static int ti_open(struct tty_struct *tty, struct usb_serial_port *port); |
102 | struct file *file); | ||
103 | static void ti_close(struct usb_serial_port *port); | 102 | static void ti_close(struct usb_serial_port *port); |
104 | static int ti_write(struct tty_struct *tty, struct usb_serial_port *port, | 103 | static int ti_write(struct tty_struct *tty, struct usb_serial_port *port, |
105 | const unsigned char *data, int count); | 104 | const unsigned char *data, int count); |
@@ -492,8 +491,7 @@ static void ti_release(struct usb_serial *serial) | |||
492 | } | 491 | } |
493 | 492 | ||
494 | 493 | ||
495 | static int ti_open(struct tty_struct *tty, | 494 | static int ti_open(struct tty_struct *tty, struct usb_serial_port *port) |
496 | struct usb_serial_port *port, struct file *file) | ||
497 | { | 495 | { |
498 | struct ti_port *tport = usb_get_serial_port_data(port); | 496 | struct ti_port *tport = usb_get_serial_port_data(port); |
499 | struct ti_device *tdev; | 497 | struct ti_device *tdev; |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 31c7a0939b98..3dda6841e724 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -244,7 +244,7 @@ static int serial_open (struct tty_struct *tty, struct file *filp) | |||
244 | 244 | ||
245 | /* only call the device specific open if this | 245 | /* only call the device specific open if this |
246 | * is the first time the port is opened */ | 246 | * is the first time the port is opened */ |
247 | retval = serial->type->open(tty, port, filp); | 247 | retval = serial->type->open(tty, port); |
248 | if (retval) | 248 | if (retval) |
249 | goto bailout_interface_put; | 249 | goto bailout_interface_put; |
250 | mutex_unlock(&serial->disc_mutex); | 250 | mutex_unlock(&serial->disc_mutex); |
diff --git a/drivers/usb/serial/usb_debug.c b/drivers/usb/serial/usb_debug.c index 614800972dc3..7b5bfc4edd3d 100644 --- a/drivers/usb/serial/usb_debug.c +++ b/drivers/usb/serial/usb_debug.c | |||
@@ -43,11 +43,10 @@ static struct usb_driver debug_driver = { | |||
43 | .no_dynamic_id = 1, | 43 | .no_dynamic_id = 1, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static int usb_debug_open(struct tty_struct *tty, struct usb_serial_port *port, | 46 | static int usb_debug_open(struct tty_struct *tty, struct usb_serial_port *port) |
47 | struct file *filp) | ||
48 | { | 47 | { |
49 | port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE; | 48 | port->bulk_out_size = USB_DEBUG_MAX_PACKET_SIZE; |
50 | return usb_serial_generic_open(tty, port, filp); | 49 | return usb_serial_generic_open(tty, port); |
51 | } | 50 | } |
52 | 51 | ||
53 | /* This HW really does not support a serial break, so one will be | 52 | /* This HW really does not support a serial break, so one will be |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index f5d0f64dcc52..1aa5d20a5d99 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -36,8 +36,7 @@ | |||
36 | #define DRIVER_DESC "USB HandSpring Visor / Palm OS driver" | 36 | #define DRIVER_DESC "USB HandSpring Visor / Palm OS driver" |
37 | 37 | ||
38 | /* function prototypes for a handspring visor */ | 38 | /* function prototypes for a handspring visor */ |
39 | static int visor_open(struct tty_struct *tty, struct usb_serial_port *port, | 39 | static int visor_open(struct tty_struct *tty, struct usb_serial_port *port); |
40 | struct file *filp); | ||
41 | static void visor_close(struct usb_serial_port *port); | 40 | static void visor_close(struct usb_serial_port *port); |
42 | static int visor_write(struct tty_struct *tty, struct usb_serial_port *port, | 41 | static int visor_write(struct tty_struct *tty, struct usb_serial_port *port, |
43 | const unsigned char *buf, int count); | 42 | const unsigned char *buf, int count); |
@@ -273,8 +272,7 @@ static int stats; | |||
273 | /****************************************************************************** | 272 | /****************************************************************************** |
274 | * Handspring Visor specific driver functions | 273 | * Handspring Visor specific driver functions |
275 | ******************************************************************************/ | 274 | ******************************************************************************/ |
276 | static int visor_open(struct tty_struct *tty, struct usb_serial_port *port, | 275 | static int visor_open(struct tty_struct *tty, struct usb_serial_port *port) |
277 | struct file *filp) | ||
278 | { | 276 | { |
279 | struct usb_serial *serial = port->serial; | 277 | struct usb_serial *serial = port->serial; |
280 | struct visor_private *priv = usb_get_serial_port_data(port); | 278 | struct visor_private *priv = usb_get_serial_port_data(port); |
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 8d126dd7a02e..81f2ae505966 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -146,7 +146,7 @@ static int whiteheat_firmware_attach(struct usb_serial *serial); | |||
146 | static int whiteheat_attach(struct usb_serial *serial); | 146 | static int whiteheat_attach(struct usb_serial *serial); |
147 | static void whiteheat_release(struct usb_serial *serial); | 147 | static void whiteheat_release(struct usb_serial *serial); |
148 | static int whiteheat_open(struct tty_struct *tty, | 148 | static int whiteheat_open(struct tty_struct *tty, |
149 | struct usb_serial_port *port, struct file *filp); | 149 | struct usb_serial_port *port); |
150 | static void whiteheat_close(struct usb_serial_port *port); | 150 | static void whiteheat_close(struct usb_serial_port *port); |
151 | static int whiteheat_write(struct tty_struct *tty, | 151 | static int whiteheat_write(struct tty_struct *tty, |
152 | struct usb_serial_port *port, | 152 | struct usb_serial_port *port, |
@@ -659,8 +659,7 @@ static void whiteheat_release(struct usb_serial *serial) | |||
659 | return; | 659 | return; |
660 | } | 660 | } |
661 | 661 | ||
662 | static int whiteheat_open(struct tty_struct *tty, | 662 | static int whiteheat_open(struct tty_struct *tty, struct usb_serial_port *port) |
663 | struct usb_serial_port *port, struct file *filp) | ||
664 | { | 663 | { |
665 | int retval = 0; | 664 | int retval = 0; |
666 | 665 | ||