diff options
Diffstat (limited to 'drivers/tty/serial/ip22zilog.c')
-rw-r--r-- | drivers/tty/serial/ip22zilog.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/drivers/tty/serial/ip22zilog.c b/drivers/tty/serial/ip22zilog.c index 99b7b8697861..991e6dce916e 100644 --- a/drivers/tty/serial/ip22zilog.c +++ b/drivers/tty/serial/ip22zilog.c | |||
@@ -544,7 +544,8 @@ static unsigned int ip22zilog_get_mctrl(struct uart_port *port) | |||
544 | /* The port lock is held and interrupts are disabled. */ | 544 | /* The port lock is held and interrupts are disabled. */ |
545 | static void ip22zilog_set_mctrl(struct uart_port *port, unsigned int mctrl) | 545 | static void ip22zilog_set_mctrl(struct uart_port *port, unsigned int mctrl) |
546 | { | 546 | { |
547 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 547 | struct uart_ip22zilog_port *up = |
548 | container_of(port, struct uart_ip22zilog_port, port); | ||
548 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); | 549 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); |
549 | unsigned char set_bits, clear_bits; | 550 | unsigned char set_bits, clear_bits; |
550 | 551 | ||
@@ -568,7 +569,8 @@ static void ip22zilog_set_mctrl(struct uart_port *port, unsigned int mctrl) | |||
568 | /* The port lock is held and interrupts are disabled. */ | 569 | /* The port lock is held and interrupts are disabled. */ |
569 | static void ip22zilog_stop_tx(struct uart_port *port) | 570 | static void ip22zilog_stop_tx(struct uart_port *port) |
570 | { | 571 | { |
571 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 572 | struct uart_ip22zilog_port *up = |
573 | container_of(port, struct uart_ip22zilog_port, port); | ||
572 | 574 | ||
573 | up->flags |= IP22ZILOG_FLAG_TX_STOPPED; | 575 | up->flags |= IP22ZILOG_FLAG_TX_STOPPED; |
574 | } | 576 | } |
@@ -576,7 +578,8 @@ static void ip22zilog_stop_tx(struct uart_port *port) | |||
576 | /* The port lock is held and interrupts are disabled. */ | 578 | /* The port lock is held and interrupts are disabled. */ |
577 | static void ip22zilog_start_tx(struct uart_port *port) | 579 | static void ip22zilog_start_tx(struct uart_port *port) |
578 | { | 580 | { |
579 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 581 | struct uart_ip22zilog_port *up = |
582 | container_of(port, struct uart_ip22zilog_port, port); | ||
580 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); | 583 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); |
581 | unsigned char status; | 584 | unsigned char status; |
582 | 585 | ||
@@ -636,7 +639,8 @@ static void ip22zilog_stop_rx(struct uart_port *port) | |||
636 | /* The port lock is held. */ | 639 | /* The port lock is held. */ |
637 | static void ip22zilog_enable_ms(struct uart_port *port) | 640 | static void ip22zilog_enable_ms(struct uart_port *port) |
638 | { | 641 | { |
639 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 642 | struct uart_ip22zilog_port *up = |
643 | container_of(port, struct uart_ip22zilog_port, port); | ||
640 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); | 644 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); |
641 | unsigned char new_reg; | 645 | unsigned char new_reg; |
642 | 646 | ||
@@ -652,7 +656,8 @@ static void ip22zilog_enable_ms(struct uart_port *port) | |||
652 | /* The port lock is not held. */ | 656 | /* The port lock is not held. */ |
653 | static void ip22zilog_break_ctl(struct uart_port *port, int break_state) | 657 | static void ip22zilog_break_ctl(struct uart_port *port, int break_state) |
654 | { | 658 | { |
655 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 659 | struct uart_ip22zilog_port *up = |
660 | container_of(port, struct uart_ip22zilog_port, port); | ||
656 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); | 661 | struct zilog_channel *channel = ZILOG_CHANNEL_FROM_PORT(port); |
657 | unsigned char set_bits, clear_bits, new_reg; | 662 | unsigned char set_bits, clear_bits, new_reg; |
658 | unsigned long flags; | 663 | unsigned long flags; |
@@ -873,7 +878,8 @@ static void | |||
873 | ip22zilog_set_termios(struct uart_port *port, struct ktermios *termios, | 878 | ip22zilog_set_termios(struct uart_port *port, struct ktermios *termios, |
874 | struct ktermios *old) | 879 | struct ktermios *old) |
875 | { | 880 | { |
876 | struct uart_ip22zilog_port *up = (struct uart_ip22zilog_port *) port; | 881 | struct uart_ip22zilog_port *up = |
882 | container_of(port, struct uart_ip22zilog_port, port); | ||
877 | unsigned long flags; | 883 | unsigned long flags; |
878 | int baud, brg; | 884 | int baud, brg; |
879 | 885 | ||