]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/class/cdc-acm.c
TTY: add tty_port_tty_wakeup helper
[~andy/linux] / drivers / usb / class / cdc-acm.c
index 8ac25adf31b41d857a6919299f1848cf2ee43710..755766e4b7566d2a9fa236cd5ce919ba97a9a23e 100644 (file)
@@ -475,15 +475,10 @@ static void acm_write_bulk(struct urb *urb)
 static void acm_softint(struct work_struct *work)
 {
        struct acm *acm = container_of(work, struct acm, work);
-       struct tty_struct *tty;
 
        dev_vdbg(&acm->data->dev, "%s\n", __func__);
 
-       tty = tty_port_tty_get(&acm->port);
-       if (!tty)
-               return;
-       tty_wakeup(tty);
-       tty_kref_put(tty);
+       tty_port_tty_wakeup(&acm->port);
 }
 
 /*