diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/serial/keyspan.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/serial/keyspan.c')
-rw-r--r-- | drivers/usb/serial/keyspan.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index 297163c3c610..a442352d7b61 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -9,7 +9,7 @@ | |||
9 | the Free Software Foundation; either version 2 of the License, or | 9 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. | 10 | (at your option) any later version. |
11 | 11 | ||
12 | See http://misc.nu/hugh/keyspan.html for more information. | 12 | See http://blemings.org/hugh/keyspan.html for more information. |
13 | 13 | ||
14 | Code in this driver inspired by and in a number of places taken | 14 | Code in this driver inspired by and in a number of places taken |
15 | from Brian Warner's original Keyspan-PDA driver. | 15 | from Brian Warner's original Keyspan-PDA driver. |
@@ -301,7 +301,7 @@ static void keyspan_set_termios(struct tty_struct *tty, | |||
301 | keyspan_send_setup(port, 0); | 301 | keyspan_send_setup(port, 0); |
302 | } | 302 | } |
303 | 303 | ||
304 | static int keyspan_tiocmget(struct tty_struct *tty, struct file *file) | 304 | static int keyspan_tiocmget(struct tty_struct *tty) |
305 | { | 305 | { |
306 | struct usb_serial_port *port = tty->driver_data; | 306 | struct usb_serial_port *port = tty->driver_data; |
307 | struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); | 307 | struct keyspan_port_private *p_priv = usb_get_serial_port_data(port); |
@@ -317,7 +317,7 @@ static int keyspan_tiocmget(struct tty_struct *tty, struct file *file) | |||
317 | return value; | 317 | return value; |
318 | } | 318 | } |
319 | 319 | ||
320 | static int keyspan_tiocmset(struct tty_struct *tty, struct file *file, | 320 | static int keyspan_tiocmset(struct tty_struct *tty, |
321 | unsigned int set, unsigned int clear) | 321 | unsigned int set, unsigned int clear) |
322 | { | 322 | { |
323 | struct usb_serial_port *port = tty->driver_data; | 323 | struct usb_serial_port *port = tty->driver_data; |
@@ -2121,16 +2121,16 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial, | |||
2121 | /* Work out which port within the device is being setup */ | 2121 | /* Work out which port within the device is being setup */ |
2122 | device_port = port->number - port->serial->minor; | 2122 | device_port = port->number - port->serial->minor; |
2123 | 2123 | ||
2124 | dbg("%s - endpoint %d port %d (%d)", | 2124 | /* Make sure we have an urb then send the message */ |
2125 | __func__, usb_pipeendpoint(this_urb->pipe), | ||
2126 | port->number, device_port); | ||
2127 | |||
2128 | /* Make sure we have an urb then send the message */ | ||
2129 | if (this_urb == NULL) { | 2125 | if (this_urb == NULL) { |
2130 | dbg("%s - oops no urb for port %d.", __func__, port->number); | 2126 | dbg("%s - oops no urb for port %d.", __func__, port->number); |
2131 | return -1; | 2127 | return -1; |
2132 | } | 2128 | } |
2133 | 2129 | ||
2130 | dbg("%s - endpoint %d port %d (%d)", | ||
2131 | __func__, usb_pipeendpoint(this_urb->pipe), | ||
2132 | port->number, device_port); | ||
2133 | |||
2134 | /* Save reset port val for resend. | 2134 | /* Save reset port val for resend. |
2135 | Don't overwrite resend for open/close condition. */ | 2135 | Don't overwrite resend for open/close condition. */ |
2136 | if ((reset_port + 1) > p_priv->resend_cont) | 2136 | if ((reset_port + 1) > p_priv->resend_cont) |