/* serial core request to check that port information in serinfo are suitable  */
static int bcm_uart_verify_port(struct uart_port *port, struct serial_struct *serinfo)
/* serial core request to check that port information in serinfo are suitable  */
static int bcm_uart_verify_port(struct uart_port *port, struct serial_struct *serinfo)
{
	if (port->type != PORT_BCM63XX)
		return -EINVAL;
	if (port->irq != serinfo->irq)
		return -EINVAL;
	if (port->iotype != serinfo->io_type)
		return -EINVAL;
	if (port->mapbase != (unsigned long)serinfo->iomem_base)
		return -EINVAL;
	return 0;
}