diff options
Diffstat (limited to 'drivers/usb/class')
| -rw-r--r-- | drivers/usb/class/cdc-acm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index f763ed7ba91e..981f2132d128 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
| @@ -39,7 +39,6 @@ | |||
| 39 | #include <linux/serial.h> | 39 | #include <linux/serial.h> |
| 40 | #include <linux/tty_driver.h> | 40 | #include <linux/tty_driver.h> |
| 41 | #include <linux/tty_flip.h> | 41 | #include <linux/tty_flip.h> |
| 42 | #include <linux/serial.h> | ||
| 43 | #include <linux/module.h> | 42 | #include <linux/module.h> |
| 44 | #include <linux/mutex.h> | 43 | #include <linux/mutex.h> |
| 45 | #include <linux/uaccess.h> | 44 | #include <linux/uaccess.h> |
| @@ -826,7 +825,7 @@ static void acm_tty_set_termios(struct tty_struct *tty, | |||
| 826 | struct ktermios *termios_old) | 825 | struct ktermios *termios_old) |
| 827 | { | 826 | { |
| 828 | struct acm *acm = tty->driver_data; | 827 | struct acm *acm = tty->driver_data; |
| 829 | struct ktermios *termios = tty->termios; | 828 | struct ktermios *termios = &tty->termios; |
| 830 | struct usb_cdc_line_coding newline; | 829 | struct usb_cdc_line_coding newline; |
| 831 | int newctrl = acm->ctrlout; | 830 | int newctrl = acm->ctrlout; |
| 832 | 831 | ||
| @@ -1299,7 +1298,8 @@ skip_countries: | |||
| 1299 | usb_set_intfdata(data_interface, acm); | 1298 | usb_set_intfdata(data_interface, acm); |
| 1300 | 1299 | ||
| 1301 | usb_get_intf(control_interface); | 1300 | usb_get_intf(control_interface); |
| 1302 | tty_register_device(acm_tty_driver, minor, &control_interface->dev); | 1301 | tty_port_register_device(&acm->port, acm_tty_driver, minor, |
| 1302 | &control_interface->dev); | ||
| 1303 | 1303 | ||
| 1304 | return 0; | 1304 | return 0; |
| 1305 | alloc_fail7: | 1305 | alloc_fail7: |
| @@ -1551,6 +1551,9 @@ static const struct usb_device_id acm_ids[] = { | |||
| 1551 | Maybe we should define a new | 1551 | Maybe we should define a new |
| 1552 | quirk for this. */ | 1552 | quirk for this. */ |
| 1553 | }, | 1553 | }, |
| 1554 | { USB_DEVICE(0x0572, 0x1340), /* Conexant CX93010-2x UCMxx */ | ||
| 1555 | .driver_info = NO_UNION_NORMAL, | ||
| 1556 | }, | ||
| 1554 | { USB_DEVICE(0x1bbb, 0x0003), /* Alcatel OT-I650 */ | 1557 | { USB_DEVICE(0x1bbb, 0x0003), /* Alcatel OT-I650 */ |
| 1555 | .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */ | 1558 | .driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */ |
| 1556 | }, | 1559 | }, |
