linux-mips
[Top] [All Lists]

[PATCH] MIPS: BCM63xx: Fix serial driver compile breakage.

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] MIPS: BCM63xx: Fix serial driver compile breakage.
From: Maxime Bizon <mbizon@freebox.fr>
Date: Wed, 04 Nov 2009 14:11:15 +0100
Cc: linux-mips@linux-mips.org
Organization: Freebox
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: mbizon@freebox.fr
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

bcm63xx does not compile on current linus' tree, could you please apply
the attached patch and send it to linus ? Thanks !



The driver missed a small API change while sitting in Ralf's tree, this
patch makes it compile again.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
---
 drivers/serial/bcm63xx_uart.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/bcm63xx_uart.c b/drivers/serial/bcm63xx_uart.c
index beddaa6..37ad0c4 100644
--- a/drivers/serial/bcm63xx_uart.c
+++ b/drivers/serial/bcm63xx_uart.c
@@ -242,7 +242,7 @@ static void bcm_uart_do_rx(struct uart_port *port)
         * higher than fifo size anyway since we're much faster than
         * serial port */
        max_count = 32;
-       tty = port->info->port.tty;
+       tty = port->state->port.tty;
        do {
                unsigned int iestat, c, cstat;
                char flag;
@@ -318,7 +318,7 @@ static void bcm_uart_do_tx(struct uart_port *port)
                return;
        }
 
-       xmit = &port->info->xmit;
+       xmit = &port->state->xmit;
        if (uart_circ_empty(xmit))
                goto txq_empty;
 
-- 
1.6.3.3




-- 
Maxime



<Prev in Thread] Current Thread [Next in Thread>