diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-06-26 16:47:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-24 01:21:50 +0200 |
commit | d7be62211125c85fa1dd796e92aadce84961a502 (patch) | |
tree | 5f8264375419cc85e33a7ed57c93271a2dabe2ab /drivers/usb/serial/f81232.c | |
parent | USB: serial: clean up dtr_rts (diff) | |
download | linux-d7be62211125c85fa1dd796e92aadce84961a502.tar.xz linux-d7be62211125c85fa1dd796e92aadce84961a502.zip |
USB: serial: set drain delay at port probe
The port drain delay is constant and should be set at port probe rather
than open.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/f81232.c')
-rw-r--r-- | drivers/usb/serial/f81232.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c index 75e85cbf9e8b..639a18fb67e6 100644 --- a/drivers/usb/serial/f81232.c +++ b/drivers/usb/serial/f81232.c @@ -207,7 +207,6 @@ static int f81232_open(struct tty_struct *tty, struct usb_serial_port *port) return result; } - port->port.drain_delay = 256; return 0; } @@ -322,6 +321,8 @@ static int f81232_port_probe(struct usb_serial_port *port) usb_set_serial_port_data(port, priv); + port->port.drain_delay = 256; + return 0; } |