Merge branch 'work.tty-ioctl' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / drivers / usb / serial / ti_usb_3410_5052.c
index 2657382280944ad4eef4b8144a648653040b870b..dd0ad67aa71e619907afdab6dc142a4335684e51 100644 (file)
@@ -1101,7 +1101,7 @@ static void ti_break(struct tty_struct *tty, int break_state)
 
 static int ti_get_port_from_code(unsigned char code)
 {
-       return (code >> 4) - 3;
+       return (code >> 6) & 0x01;
 }
 
 static int ti_get_func_from_code(unsigned char code)