/* Verify that the data in serial_struct is suitable for this device.  */
static int qe_uart_verify_port(struct uart_port *port, struct serial_struct *ser)
/* Verify that the data in serial_struct is suitable for this device.  */
static int qe_uart_verify_port(struct uart_port *port, struct serial_struct *ser)
{
	if (ser->type != PORT_UNKNOWN && ser->type != PORT_CPM)
		return -EINVAL;
	if (ser->irq < 0 || ser->irq >= nr_irqs)
		return -EINVAL;
	if (ser->baud_base < 9600)
		return -EINVAL;
	return 0;
}