diff options
Diffstat (limited to 'drivers/serial/sn_console.c')
-rw-r--r-- | drivers/serial/sn_console.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/serial/sn_console.c b/drivers/serial/sn_console.c index d5276c012f78..9794e0cd3dcc 100644 --- a/drivers/serial/sn_console.c +++ b/drivers/serial/sn_console.c | |||
@@ -469,9 +469,9 @@ sn_receive_chars(struct sn_cons_port *port, unsigned long flags) | |||
469 | return; | 469 | return; |
470 | } | 470 | } |
471 | 471 | ||
472 | if (port->sc_port.info) { | 472 | if (port->sc_port.state) { |
473 | /* The serial_core stuffs are initilized, use them */ | 473 | /* The serial_core stuffs are initilized, use them */ |
474 | tty = port->sc_port.info->port.tty; | 474 | tty = port->sc_port.state->port.tty; |
475 | } | 475 | } |
476 | else { | 476 | else { |
477 | /* Not registered yet - can't pass to tty layer. */ | 477 | /* Not registered yet - can't pass to tty layer. */ |
@@ -550,9 +550,9 @@ static void sn_transmit_chars(struct sn_cons_port *port, int raw) | |||
550 | 550 | ||
551 | BUG_ON(!port->sc_is_asynch); | 551 | BUG_ON(!port->sc_is_asynch); |
552 | 552 | ||
553 | if (port->sc_port.info) { | 553 | if (port->sc_port.state) { |
554 | /* We're initilized, using serial core infrastructure */ | 554 | /* We're initilized, using serial core infrastructure */ |
555 | xmit = &port->sc_port.info->xmit; | 555 | xmit = &port->sc_port.state->xmit; |
556 | } else { | 556 | } else { |
557 | /* Probably sn_sal_switch_to_asynch has been run but serial core isn't | 557 | /* Probably sn_sal_switch_to_asynch has been run but serial core isn't |
558 | * initilized yet. Just return. Writes are going through | 558 | * initilized yet. Just return. Writes are going through |
@@ -927,7 +927,7 @@ sn_sal_console_write(struct console *co, const char *s, unsigned count) | |||
927 | /* We can't look at the xmit buffer if we're not registered with serial core | 927 | /* We can't look at the xmit buffer if we're not registered with serial core |
928 | * yet. So only do the fancy recovery after registering | 928 | * yet. So only do the fancy recovery after registering |
929 | */ | 929 | */ |
930 | if (!port->sc_port.info) { | 930 | if (!port->sc_port.state) { |
931 | /* Not yet registered with serial core - simple case */ | 931 | /* Not yet registered with serial core - simple case */ |
932 | puts_raw_fixed(port->sc_ops->sal_puts_raw, s, count); | 932 | puts_raw_fixed(port->sc_ops->sal_puts_raw, s, count); |
933 | return; | 933 | return; |
@@ -936,8 +936,8 @@ sn_sal_console_write(struct console *co, const char *s, unsigned count) | |||
936 | /* somebody really wants this output, might be an | 936 | /* somebody really wants this output, might be an |
937 | * oops, kdb, panic, etc. make sure they get it. */ | 937 | * oops, kdb, panic, etc. make sure they get it. */ |
938 | if (spin_is_locked(&port->sc_port.lock)) { | 938 | if (spin_is_locked(&port->sc_port.lock)) { |
939 | int lhead = port->sc_port.info->xmit.head; | 939 | int lhead = port->sc_port.state->xmit.head; |
940 | int ltail = port->sc_port.info->xmit.tail; | 940 | int ltail = port->sc_port.state->xmit.tail; |
941 | int counter, got_lock = 0; | 941 | int counter, got_lock = 0; |
942 | 942 | ||
943 | /* | 943 | /* |
@@ -962,13 +962,13 @@ sn_sal_console_write(struct console *co, const char *s, unsigned count) | |||
962 | break; | 962 | break; |
963 | } else { | 963 | } else { |
964 | /* still locked */ | 964 | /* still locked */ |
965 | if ((lhead != port->sc_port.info->xmit.head) | 965 | if ((lhead != port->sc_port.state->xmit.head) |
966 | || (ltail != | 966 | || (ltail != |
967 | port->sc_port.info->xmit.tail)) { | 967 | port->sc_port.state->xmit.tail)) { |
968 | lhead = | 968 | lhead = |
969 | port->sc_port.info->xmit.head; | 969 | port->sc_port.state->xmit.head; |
970 | ltail = | 970 | ltail = |
971 | port->sc_port.info->xmit.tail; | 971 | port->sc_port.state->xmit.tail; |
972 | counter = 0; | 972 | counter = 0; |
973 | } | 973 | } |
974 | } | 974 | } |