diff mbox

[06/20] tty: serial: pxa: remove old cruft

Message ID 1375889649-14638-7-git-send-email-zonque@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Mack Aug. 7, 2013, 3:33 p.m. UTC
This #if-0'd block wouldn't compile, so let's dispose it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 drivers/tty/serial/pxa.c | 25 -------------------------
 1 file changed, 25 deletions(-)

Comments

Daniel Mack Aug. 12, 2013, 8:19 a.m. UTC | #1
Hi Greg,

This patch can be merged independently of all others. Could you queue it
up for 3.12 please?


Thanks,
Daniel


On 07.08.2013 17:33, Daniel Mack wrote:
> This #if-0'd block wouldn't compile, so let's dispose it.
> 
> Signed-off-by: Daniel Mack <zonque@gmail.com>
> ---
>  drivers/tty/serial/pxa.c | 25 -------------------------
>  1 file changed, 25 deletions(-)
> 
> diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c
> index 05f504e..cc6d539 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)
>  	spin_unlock_irqrestore(&up->port.lock, flags);
>  }
>  
> -#if 0
> -static void serial_pxa_dma_init(struct pxa_uart *up)
> -{
> -	up->rxdma =
> -		pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_receive_dma, up);
> -	if (up->rxdma < 0)
> -		goto out;
> -	up->txdma =
> -		pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_transmit_dma, up);
> -	if (up->txdma < 0)
> -		goto err_txdma;
> -	up->dmadesc = kmalloc(4 * sizeof(pxa_dma_desc), GFP_KERNEL);
> -	if (!up->dmadesc)
> -		goto err_alloc;
> -
> -	/* ... */
> -err_alloc:
> -	pxa_free_dma(up->txdma);
> -err_rxdma:
> -	pxa_free_dma(up->rxdma);
> -out:
> -	return;
> -}
> -#endif
> -
>  static int serial_pxa_startup(struct uart_port *port)
>  {
>  	struct uart_pxa_port *up = (struct uart_pxa_port *)port;
>
Greg KH Aug. 12, 2013, 6:08 p.m. UTC | #2
On Mon, Aug 12, 2013 at 10:19:13AM +0200, Daniel Mack wrote:
> Hi Greg,
> 
> This patch can be merged independently of all others. Could you queue it
> up for 3.12 please?

Will do.

greg k-h
diff mbox

Patch

diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c
index 05f504e..cc6d539 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)
 	spin_unlock_irqrestore(&up->port.lock, flags);
 }
 
-#if 0
-static void serial_pxa_dma_init(struct pxa_uart *up)
-{
-	up->rxdma =
-		pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_receive_dma, up);
-	if (up->rxdma < 0)
-		goto out;
-	up->txdma =
-		pxa_request_dma(up->name, DMA_PRIO_LOW, pxa_transmit_dma, up);
-	if (up->txdma < 0)
-		goto err_txdma;
-	up->dmadesc = kmalloc(4 * sizeof(pxa_dma_desc), GFP_KERNEL);
-	if (!up->dmadesc)
-		goto err_alloc;
-
-	/* ... */
-err_alloc:
-	pxa_free_dma(up->txdma);
-err_rxdma:
-	pxa_free_dma(up->rxdma);
-out:
-	return;
-}
-#endif
-
 static int serial_pxa_startup(struct uart_port *port)
 {
 	struct uart_pxa_port *up = (struct uart_pxa_port *)port;