diff options
-rw-r--r-- | drivers/usb/serial/kobil_sct.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c index f0f8353ec1ac..deba28ec77e8 100644 --- a/drivers/usb/serial/kobil_sct.c +++ b/drivers/usb/serial/kobil_sct.c | |||
@@ -640,9 +640,11 @@ static void kobil_set_termios(struct tty_struct *tty, | |||
640 | 640 | ||
641 | priv = usb_get_serial_port_data(port); | 641 | priv = usb_get_serial_port_data(port); |
642 | if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID || | 642 | if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID || |
643 | priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) | 643 | priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) { |
644 | /* This device doesn't support ioctl calls */ | 644 | /* This device doesn't support ioctl calls */ |
645 | *tty->termios = *old; | ||
645 | return; | 646 | return; |
647 | } | ||
646 | 648 | ||
647 | speed = tty_get_baud_rate(tty); | 649 | speed = tty_get_baud_rate(tty); |
648 | switch (speed) { | 650 | switch (speed) { |
@@ -704,7 +706,7 @@ static int kobil_ioctl(struct tty_struct *tty, struct file *file, | |||
704 | if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID || | 706 | if (priv->device_type == KOBIL_USBTWIN_PRODUCT_ID || |
705 | priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) | 707 | priv->device_type == KOBIL_KAAN_SIM_PRODUCT_ID) |
706 | /* This device doesn't support ioctl calls */ | 708 | /* This device doesn't support ioctl calls */ |
707 | return 0; | 709 | return -ENOIOCTLCMD; |
708 | 710 | ||
709 | switch (cmd) { | 711 | switch (cmd) { |
710 | case TCFLSH: | 712 | case TCFLSH: |