aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-10-17 08:32:49 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-17 08:32:49 -0400
commit214e2ca2b82d335935a861c253fe94c61ad77aad (patch)
treeeee42ff74d10470789d919b8499737ad0e919360 /drivers/usb/class/cdc-acm.c
parent1fdead8ad31d3aa833bc37739273fcde89ace93c (diff)
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
Merge tag 'v3.7-rc1' into staging/for_v3.8
Linux 3.7-rc1 * tag 'v3.7-rc1': (9579 commits) Linux 3.7-rc1 x86, boot: Explicitly include autoconf.h for hostprogs perf: Fix UAPI fallout ARM: config: make sure that platforms are ordered by option string ARM: config: sort select statements alphanumerically UAPI: (Scripted) Disintegrate include/linux/byteorder UAPI: (Scripted) Disintegrate include/linux UAPI: Unexport linux/blk_types.h UAPI: Unexport part of linux/ppp-comp.h perf: Handle new rbtree implementation procfs: don't need a PATH_MAX allocation to hold a string representation of an int vfs: embed struct filename inside of names_cache allocation if possible audit: make audit_inode take struct filename vfs: make path_openat take a struct filename pointer vfs: turn do_path_lookup into wrapper around struct filename variant audit: allow audit code to satisfy getname requests from its names_list vfs: define struct filename and have getname() return it btrfs: Fix compilation with user namespace support enabled userns: Fix posix_acl_file_xattr_userns gid conversion userns: Properly print bluetooth socket uids ...
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
-rw-r--r--drivers/usb/class/cdc-acm.c9
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;
1305alloc_fail7: 1305alloc_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 },