]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/ehv_bytechan.c
PCI: Delay final fixups until resources are assigned
[karo-tx-linux.git] / drivers / tty / ehv_bytechan.c
index ed92622b8949dcdd3338388e213b67241110d3e1..6d0c27cd03da2676b91bfef307482a83be765697 100644 (file)
@@ -472,13 +472,9 @@ static void ehv_bc_tx_dequeue(struct ehv_bc_data *bc)
 static irqreturn_t ehv_bc_tty_tx_isr(int irq, void *data)
 {
        struct ehv_bc_data *bc = data;
-       struct tty_struct *ttys = tty_port_tty_get(&bc->port);
 
        ehv_bc_tx_dequeue(bc);
-       if (ttys) {
-               tty_wakeup(ttys);
-               tty_kref_put(ttys);
-       }
+       tty_port_tty_wakeup(&bc->port);
 
        return IRQ_HANDLED;
 }