/* On Sun, Dec 08, 2002 at 02:43:36AM -0500, Pete Zaitcev wrote:  */
static void sunzilog_shutdown(struct uart_port *port)
/* On Sun, Dec 08, 2002 at 02:43:36AM -0500, Pete Zaitcev wrote:  */
static void sunzilog_shutdown(struct uart_port *port)
{
	struct uart_sunzilog_port *up = UART_ZILOG(port);
	struct zilog_channel __iomem *channel;
	unsigned long flags;
	if (ZS_IS_CONS(up))
		return;
	spin_lock_irqsave(&port->lock, flags);
	channel = ZILOG_CHANNEL_FROM_PORT(port);
	up->curregs[R3] &= ~RxENAB;
	up->curregs[R5] &= ~TxENAB;
	up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK);
	up->curregs[R5] &= ~SND_BRK;
	sunzilog_maybe_update_regs(up, channel);
	spin_unlock_irqrestore(&port->lock, flags);
}