aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/atmel_serial.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c
index d9ad19f09310..b0603e1f7d82 100644
--- a/drivers/tty/serial/atmel_serial.c
+++ b/drivers/tty/serial/atmel_serial.c
@@ -115,9 +115,6 @@ static void atmel_stop_rx(struct uart_port *port);
115#define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR) 115#define UART_PUT_TCR(port,v) __raw_writel(v, (port)->membase + ATMEL_PDC_TCR)
116#define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR) 116#define UART_GET_TCR(port) __raw_readl((port)->membase + ATMEL_PDC_TCR)
117 117
118static int (*atmel_open_hook)(struct uart_port *);
119static void (*atmel_close_hook)(struct uart_port *);
120
121struct atmel_dma_buffer { 118struct atmel_dma_buffer {
122 unsigned char *buf; 119 unsigned char *buf;
123 dma_addr_t dma_addr; 120 dma_addr_t dma_addr;
@@ -1575,17 +1572,6 @@ static int atmel_startup(struct uart_port *port)
1575 if (retval < 0) 1572 if (retval < 0)
1576 atmel_set_ops(port); 1573 atmel_set_ops(port);
1577 } 1574 }
1578 /*
1579 * If there is a specific "open" function (to register
1580 * control line interrupts)
1581 */
1582 if (atmel_open_hook) {
1583 retval = atmel_open_hook(port);
1584 if (retval) {
1585 free_irq(port->irq, port);
1586 return retval;
1587 }
1588 }
1589 1575
1590 /* Save current CSR for comparison in atmel_tasklet_func() */ 1576 /* Save current CSR for comparison in atmel_tasklet_func() */
1591 atmel_port->irq_status_prev = UART_GET_CSR(port); 1577 atmel_port->irq_status_prev = UART_GET_CSR(port);
@@ -1684,13 +1670,6 @@ static void atmel_shutdown(struct uart_port *port)
1684 * Free the interrupt 1670 * Free the interrupt
1685 */ 1671 */
1686 free_irq(port->irq, port); 1672 free_irq(port->irq, port);
1687
1688 /*
1689 * If there is a specific "close" function (to unregister
1690 * control line interrupts)
1691 */
1692 if (atmel_close_hook)
1693 atmel_close_hook(port);
1694} 1673}
1695 1674
1696/* 1675/*