/* Calculate the uart clock divisor for the port.  */
unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud)
/* Calculate the uart clock divisor for the port.  */
unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud)
{
	unsigned int quot;
	if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST)
		quot = port->custom_divisor;
	else
		quot = (port->uartclk + (8 * baud)) / (16 * baud);
	return quot;
}