static void sa1100_shutdown(struct uart_port *port) { struct sa1100_port *sport = (struct sa1100_port *)port; /* * Stop our timer. */ del_timer_sync(&sport->timer); /* * Free the interrupt */ free_irq(sport->port.irq, sport); /* * If there is a specific "close" function (to unregister * control line interrupts) */ if (sa1100_close) sa1100_close(port); /* * Disable all interrupts, port and break condition. */ UART_PUT_UTCR3(sport, 0); }
static void sa1100_shutdown(struct uart_port *port, struct uart_info *info) { /* * Free the interrupt */ free_irq(port->irq, info); /* * If there is a specific "close" function (to unregister * control line interrupts) */ if (sa1100_close) sa1100_close(port, info); /* * Disable all interrupts, port and break condition. */ UART_PUT_UTCR3(port, 0); }