/* Remove one serial port. This may not be called from interrupt context. We hand the port back to the our control.  */
static void __devexit serial_txx9_unregister_port(int line)
/* Remove one serial port. This may not be called from interrupt context. We hand the port back to the our control.  */
static void __devexit serial_txx9_unregister_port(int line)
{
	struct uart_txx9_port *uart = &serial_txx9_ports[line];
	mutex_lock(&serial_txx9_mutex);
	uart_remove_one_port(&serial_txx9_reg, &uart->port);
	uart->port.flags = 0;
	uart->port.type = PORT_UNKNOWN;
	uart->port.iobase = 0;
	uart->port.mapbase = 0;
	uart->port.membase = NULL;
	uart->port.dev = NULL;
	mutex_unlock(&serial_txx9_mutex);
}