diff options
author | Daniel Mack <zonque@gmail.com> | 2013-08-07 11:33:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:10:16 -0400 |
commit | 331b37340af0ce96b6d6701b21b9902c85a8e2c0 (patch) | |
tree | fd777e38efd5ad39832a9bad530b845ae4e051a9 /drivers/tty/serial/pxa.c | |
parent | 16cf48a6d3e8f9ebe3c3231c12cbe4b0c4ed4d24 (diff) |
tty: serial: pxa: remove old cruft
This #if-0'd block wouldn't compile, so let's dispose it.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/pxa.c')
-rw-r--r-- | drivers/tty/serial/pxa.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index ac8b2f5b2396..43da578d41f2 100644 --- a/drivers/tty/serial/pxa.c +++ b/drivers/tty/serial/pxa.c | |||
@@ -332,31 +332,6 @@ static void serial_pxa_break_ctl(struct uart_port *port, int break_state) | |||
332 | spin_unlock_irqrestore(&up->port.lock, flags); | 332 | spin_unlock_irqrestore(&up->port.lock, flags); |
333 | } | 333 | } |
334 | 334 | ||
335 | #if 0 | ||
336 | static void serial_pxa_dma_init(struct pxa_uart *up) | ||
337 | { | ||
338 | up->rxdma = | ||
339 | pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_receive_dma, up); | ||
340 | if (up->rxdma < 0) | ||
341 | goto out; | ||
342 | up->txdma = | ||
343 | pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_transmit_dma, up); | ||
344 | if (up->txdma < 0) | ||
345 | goto err_txdma; | ||
346 | up->dmadesc = kmalloc(4 * sizeof(pxa_dma_desc), GFP_KERNEL); | ||
347 | if (!up->dmadesc) | ||
348 | goto err_alloc; | ||
349 | |||
350 | /* ... */ | ||
351 | err_alloc: | ||
352 | pxa_free_dma(up->txdma); | ||
353 | err_rxdma: | ||
354 | pxa_free_dma(up->rxdma); | ||
355 | out: | ||
356 | return; | ||
357 | } | ||
358 | #endif | ||
359 | |||
360 | static int serial_pxa_startup(struct uart_port *port) | 335 | static int serial_pxa_startup(struct uart_port *port) |
361 | { | 336 | { |
362 | struct uart_pxa_port *up = (struct uart_pxa_port *)port; | 337 | struct uart_pxa_port *up = (struct uart_pxa_port *)port; |