diff options
author | David Brownell <david-b@pacbell.net> | 2007-11-14 19:59:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-14 21:45:39 -0500 |
commit | 19cd7537bdae6685c31677a01e08850612ba87f6 (patch) | |
tree | 88da3bea6834f17161945bfab6ad52f991eca57c /drivers/serial/atmel_serial.c | |
parent | 348badf1e825323c419dd118f65783db0f7d2ec8 (diff) |
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: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial/atmel_serial.c')
-rw-r--r-- | drivers/serial/atmel_serial.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c index 4d6b3c56d20..111da57f533 100644 --- a/drivers/serial/atmel_serial.c +++ b/drivers/serial/atmel_serial.c | |||
@@ -204,8 +204,6 @@ static u_int atmel_get_mctrl(struct uart_port *port) | |||
204 | */ | 204 | */ |
205 | static void atmel_stop_tx(struct uart_port *port) | 205 | static void atmel_stop_tx(struct uart_port *port) |
206 | { | 206 | { |
207 | struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port; | ||
208 | |||
209 | UART_PUT_IDR(port, ATMEL_US_TXRDY); | 207 | UART_PUT_IDR(port, ATMEL_US_TXRDY); |
210 | } | 208 | } |
211 | 209 | ||
@@ -214,8 +212,6 @@ static void atmel_stop_tx(struct uart_port *port) | |||
214 | */ | 212 | */ |
215 | static void atmel_start_tx(struct uart_port *port) | 213 | static void atmel_start_tx(struct uart_port *port) |
216 | { | 214 | { |
217 | struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port; | ||
218 | |||
219 | UART_PUT_IER(port, ATMEL_US_TXRDY); | 215 | UART_PUT_IER(port, ATMEL_US_TXRDY); |
220 | } | 216 | } |
221 | 217 | ||
@@ -224,8 +220,6 @@ static void atmel_start_tx(struct uart_port *port) | |||
224 | */ | 220 | */ |
225 | static void atmel_stop_rx(struct uart_port *port) | 221 | static void atmel_stop_rx(struct uart_port *port) |
226 | { | 222 | { |
227 | struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port; | ||
228 | |||
229 | UART_PUT_IDR(port, ATMEL_US_RXRDY); | 223 | UART_PUT_IDR(port, ATMEL_US_RXRDY); |
230 | } | 224 | } |
231 | 225 | ||
@@ -409,7 +403,6 @@ static irqreturn_t atmel_interrupt(int irq, void *dev_id) | |||
409 | */ | 403 | */ |
410 | static int atmel_startup(struct uart_port *port) | 404 | static int atmel_startup(struct uart_port *port) |
411 | { | 405 | { |
412 | struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port; | ||
413 | int retval; | 406 | int retval; |
414 | 407 | ||
415 | /* | 408 | /* |
@@ -456,8 +449,6 @@ static int atmel_startup(struct uart_port *port) | |||
456 | */ | 449 | */ |
457 | static void atmel_shutdown(struct uart_port *port) | 450 | static void atmel_shutdown(struct uart_port *port) |
458 | { | 451 | { |
459 | struct atmel_uart_port *atmel_port = (struct atmel_uart_port *) port; | ||
460 | |||
461 | /* | 452 | /* |
462 | * Disable all interrupts, port and break condition. | 453 | * Disable all interrupts, port and break condition. |
463 | */ | 454 | */ |