diff options
Diffstat (limited to 'drivers/serial/sunhv.c')
-rw-r--r-- | drivers/serial/sunhv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/sunhv.c b/drivers/serial/sunhv.c index 1df5325faab2..d548652dee50 100644 --- a/drivers/serial/sunhv.c +++ b/drivers/serial/sunhv.c | |||
@@ -184,8 +184,8 @@ static struct tty_struct *receive_chars(struct uart_port *port) | |||
184 | { | 184 | { |
185 | struct tty_struct *tty = NULL; | 185 | struct tty_struct *tty = NULL; |
186 | 186 | ||
187 | if (port->info != NULL) /* Unopened serial console */ | 187 | if (port->state != NULL) /* Unopened serial console */ |
188 | tty = port->info->port.tty; | 188 | tty = port->state->port.tty; |
189 | 189 | ||
190 | if (sunhv_ops->receive_chars(port, tty)) | 190 | if (sunhv_ops->receive_chars(port, tty)) |
191 | sun_do_break(); | 191 | sun_do_break(); |
@@ -197,10 +197,10 @@ static void transmit_chars(struct uart_port *port) | |||
197 | { | 197 | { |
198 | struct circ_buf *xmit; | 198 | struct circ_buf *xmit; |
199 | 199 | ||
200 | if (!port->info) | 200 | if (!port->state) |
201 | return; | 201 | return; |
202 | 202 | ||
203 | xmit = &port->info->xmit; | 203 | xmit = &port->state->xmit; |
204 | if (uart_circ_empty(xmit) || uart_tx_stopped(port)) | 204 | if (uart_circ_empty(xmit) || uart_tx_stopped(port)) |
205 | return; | 205 | return; |
206 | 206 | ||