Commit 19cd7537 authored by David Brownell's avatar David Brownell Committed by Linus Torvalds

atmel_serial build warnings begone

Remove annoying build warnings about unused variables in atmel_serial,
which afflict both AT91 and AVR32 builds.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Acked-by: default avatarHaavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 348badf1
...@@ -204,8 +204,6 @@ static u_int atmel_get_mctrl(struct uart_port *port) ...@@ -204,8 +204,6 @@ static u_int atmel_get_mctrl(struct uart_port *port)
*/ */
static void atmel_stop_tx(struct uart_port *port) static void atmel_stop_tx(struct uart_port *port)
{ {
struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port;
UART_PUT_IDR(port, ATMEL_US_TXRDY); UART_PUT_IDR(port, ATMEL_US_TXRDY);
} }
...@@ -214,8 +212,6 @@ static void atmel_stop_tx(struct uart_port *port) ...@@ -214,8 +212,6 @@ static void atmel_stop_tx(struct uart_port *port)
*/ */
static void atmel_start_tx(struct uart_port *port) static void atmel_start_tx(struct uart_port *port)
{ {
struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port;
UART_PUT_IER(port, ATMEL_US_TXRDY); UART_PUT_IER(port, ATMEL_US_TXRDY);
} }
...@@ -224,8 +220,6 @@ static void atmel_start_tx(struct uart_port *port) ...@@ -224,8 +220,6 @@ static void atmel_start_tx(struct uart_port *port)
*/ */
static void atmel_stop_rx(struct uart_port *port) static void atmel_stop_rx(struct uart_port *port)
{ {
struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port;
UART_PUT_IDR(port, ATMEL_US_RXRDY); UART_PUT_IDR(port, ATMEL_US_RXRDY);
} }
...@@ -409,7 +403,6 @@ static irqreturn_t atmel_interrupt(int irq, void *dev_id) ...@@ -409,7 +403,6 @@ static irqreturn_t atmel_interrupt(int irq, void *dev_id)
*/ */
static int atmel_startup(struct uart_port *port) static int atmel_startup(struct uart_port *port)
{ {
struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port;
int retval; int retval;
/* /*
...@@ -456,8 +449,6 @@ static int atmel_startup(struct uart_port *port) ...@@ -456,8 +449,6 @@ static int atmel_startup(struct uart_port *port)
*/ */
static void atmel_shutdown(struct uart_port *port) static void atmel_shutdown(struct uart_port *port)
{ {
struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port;
/* /*
* Disable all interrupts, port and break condition. * Disable all interrupts, port and break condition.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment