iwlwifi: rename iwl4965-base.c to iwl-agn.c
[firefly-linux-kernel-4.4.55.git] / drivers / serial / sunzilog.c
index 7e9fa5ef0eb72c3a90a51871c584ac134efd2ed2..0f3d69b86d6795de97bc81239d20fb78cbb920e9 100644 (file)
@@ -329,8 +329,8 @@ sunzilog_receive_chars(struct uart_sunzilog_port *up,
 
        tty = NULL;
        if (up->port.info != NULL &&            /* Unopened serial console */
-           up->port.info->tty != NULL)         /* Keyboard || mouse */
-               tty = up->port.info->tty;
+           up->port.info->port.tty != NULL)    /* Keyboard || mouse */
+               tty = up->port.info->port.tty;
 
        for (;;) {