tty/serial: atmel_serial: whitespace and braces modifications
authorNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 12 Oct 2011 16:06:58 +0000 (18:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 18 Oct 2011 23:42:07 +0000 (16:42 -0700)
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/atmel_serial.c

index a507daa05cfbfce196e6771584ff7eb2b9c5503f..bb723542ad24b2cf453552ff0bc43604de3cf575 100644 (file)
@@ -1433,10 +1433,10 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
 
        memset(&atmel_port->rx_ring, 0, sizeof(atmel_port->rx_ring));
 
-       if (pdata->regs)
+       if (pdata->regs) {
                /* Already mapped by setup code */
                port->membase = pdata->regs;
-       else {
+       else {
                port->flags     |= UPF_IOREMAP;
                port->membase   = NULL;
        }
@@ -1450,9 +1450,10 @@ static void __devinit atmel_init_port(struct atmel_uart_port *atmel_port,
                /* only enable clock when USART is in use */
        }
 
-       atmel_port->use_dma_rx = pdata->use_dma_rx;
-       atmel_port->use_dma_tx = pdata->use_dma_tx;
+       atmel_port->use_dma_rx  = pdata->use_dma_rx;
+       atmel_port->use_dma_tx  = pdata->use_dma_tx;
        atmel_port->rs485       = pdata->rs485;
+
        /* Use TXEMPTY for interrupt when rs485 else TXRDY or ENDTX|TXBUFE */
        if (atmel_port->rs485.flags & SER_RS485_ENABLED)
                atmel_port->tx_done_mask = ATMEL_US_TXEMPTY;
This page took 0.028998 seconds and 5 git commands to generate.