aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/sierra.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r--drivers/usb/serial/sierra.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c
index af06f2f5f38b..d4426c038c32 100644
--- a/drivers/usb/serial/sierra.c
+++ b/drivers/usb/serial/sierra.c
@@ -861,19 +861,13 @@ static int sierra_open(struct tty_struct *tty, struct usb_serial_port *port)
861 861
862static void sierra_dtr_rts(struct usb_serial_port *port, int on) 862static void sierra_dtr_rts(struct usb_serial_port *port, int on)
863{ 863{
864 struct usb_serial *serial = port->serial;
865 struct sierra_port_private *portdata; 864 struct sierra_port_private *portdata;
866 865
867 portdata = usb_get_serial_port_data(port); 866 portdata = usb_get_serial_port_data(port);
868 portdata->rts_state = on; 867 portdata->rts_state = on;
869 portdata->dtr_state = on; 868 portdata->dtr_state = on;
870 869
871 if (serial->dev) { 870 sierra_send_setup(port);
872 mutex_lock(&serial->disc_mutex);
873 if (!serial->disconnected)
874 sierra_send_setup(port);
875 mutex_unlock(&serial->disc_mutex);
876 }
877} 871}
878 872
879static int sierra_startup(struct usb_serial *serial) 873static int sierra_startup(struct usb_serial *serial)