aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_serial.c')
-rw-r--r--drivers/usb/gadget/u_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
index 5b3f5fffea92..2b5534c2ab84 100644
--- a/drivers/usb/gadget/u_serial.c
+++ b/drivers/usb/gadget/u_serial.c
@@ -1129,7 +1129,8 @@ int gserial_setup(struct usb_gadget *g, unsigned count)
1129 for (i = 0; i < count; i++) { 1129 for (i = 0; i < count; i++) {
1130 struct device *tty_dev; 1130 struct device *tty_dev;
1131 1131
1132 tty_dev = tty_register_device(gs_tty_driver, i, &g->dev); 1132 tty_dev = tty_port_register_device(&ports[i].port->port,
1133 gs_tty_driver, i, &g->dev);
1133 if (IS_ERR(tty_dev)) 1134 if (IS_ERR(tty_dev))
1134 pr_warning("%s: no classdev for port %d, err %ld\n", 1135 pr_warning("%s: no classdev for port %d, err %ld\n",
1135 __func__, i, PTR_ERR(tty_dev)); 1136 __func__, i, PTR_ERR(tty_dev));