diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-01-16 08:45:07 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-16 10:36:47 -0500 |
commit | 59c5f92427efa2bcf2a1ff6566027a5876d5dfa7 (patch) | |
tree | a713d5441784a9777644a6df83f832e95dfe976b /arch/mn10300/kernel | |
parent | 2894500dec707a3318e8c28a8df24d828af9a5e3 (diff) |
TTY: mn10300-serial, fix build breakage
By the recent `switch flipping' patches we introduced a build failure
in the driver:
mn10300-serial.c:527:19: error: 'port' redeclared as different kind of symbol
I did not notice because I did not even find a compiler for that new
architecture. Hopefully everything is all right now as I cannot test
it.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mn10300/kernel')
-rw-r--r-- | arch/mn10300/kernel/mn10300-serial.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/mn10300/kernel/mn10300-serial.c b/arch/mn10300/kernel/mn10300-serial.c index 1dd20dbfd098..bf6e949a2f87 100644 --- a/arch/mn10300/kernel/mn10300-serial.c +++ b/arch/mn10300/kernel/mn10300-serial.c | |||
@@ -524,7 +524,7 @@ static int mask_test_and_clear(volatile u8 *ptr, u8 mask) | |||
524 | static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) | 524 | static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) |
525 | { | 525 | { |
526 | struct uart_icount *icount = &port->uart.icount; | 526 | struct uart_icount *icount = &port->uart.icount; |
527 | struct tty_port *port = &port->uart.state->port; | 527 | struct tty_port *tport = &port->uart.state->port; |
528 | unsigned ix; | 528 | unsigned ix; |
529 | int count; | 529 | int count; |
530 | u8 st, ch, push, status, overrun; | 530 | u8 st, ch, push, status, overrun; |
@@ -534,10 +534,10 @@ static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port) | |||
534 | push = 0; | 534 | push = 0; |
535 | 535 | ||
536 | count = CIRC_CNT(port->rx_inp, port->rx_outp, MNSC_BUFFER_SIZE); | 536 | count = CIRC_CNT(port->rx_inp, port->rx_outp, MNSC_BUFFER_SIZE); |
537 | count = tty_buffer_request_room(port, count); | 537 | count = tty_buffer_request_room(tport, count); |
538 | if (count == 0) { | 538 | if (count == 0) { |
539 | if (!port->low_latency) | 539 | if (!tport->low_latency) |
540 | tty_flip_buffer_push(port); | 540 | tty_flip_buffer_push(tport); |
541 | return; | 541 | return; |
542 | } | 542 | } |
543 | 543 | ||
@@ -545,8 +545,8 @@ try_again: | |||
545 | /* pull chars out of the hat */ | 545 | /* pull chars out of the hat */ |
546 | ix = ACCESS_ONCE(port->rx_outp); | 546 | ix = ACCESS_ONCE(port->rx_outp); |
547 | if (CIRC_CNT(port->rx_inp, ix, MNSC_BUFFER_SIZE) == 0) { | 547 | if (CIRC_CNT(port->rx_inp, ix, MNSC_BUFFER_SIZE) == 0) { |
548 | if (push && !port->low_latency) | 548 | if (push && !tport->low_latency) |
549 | tty_flip_buffer_push(port); | 549 | tty_flip_buffer_push(tport); |
550 | return; | 550 | return; |
551 | } | 551 | } |
552 | 552 | ||
@@ -666,19 +666,19 @@ insert: | |||
666 | else | 666 | else |
667 | flag = TTY_NORMAL; | 667 | flag = TTY_NORMAL; |
668 | 668 | ||
669 | tty_insert_flip_char(port, ch, flag); | 669 | tty_insert_flip_char(tport, ch, flag); |
670 | } | 670 | } |
671 | 671 | ||
672 | /* overrun is special, since it's reported immediately, and doesn't | 672 | /* overrun is special, since it's reported immediately, and doesn't |
673 | * affect the current character | 673 | * affect the current character |
674 | */ | 674 | */ |
675 | if (overrun) | 675 | if (overrun) |
676 | tty_insert_flip_char(port, 0, TTY_OVERRUN); | 676 | tty_insert_flip_char(tport, 0, TTY_OVERRUN); |
677 | 677 | ||
678 | count--; | 678 | count--; |
679 | if (count <= 0) { | 679 | if (count <= 0) { |
680 | if (!port->low_latency) | 680 | if (!tport->low_latency) |
681 | tty_flip_buffer_push(port); | 681 | tty_flip_buffer_push(tport); |
682 | return; | 682 | return; |
683 | } | 683 | } |
684 | 684 | ||