/* Release the memory region(s) being used by 'port'.  */
static void atmel_release_port(struct uart_port *port)
/* Release the memory region(s) being used by 'port'.  */
static void atmel_release_port(struct uart_port *port)
{
	struct platform_device *pdev = to_platform_device(port->dev);
	int size = pdev->resource[0].end - pdev->resource[0].start + 1;
	release_mem_region(port->mapbase, size);
	if (port->flags & UPF_IOREMAP) {
		iounmap(port->membase);
		port->membase = NULL;
	}
}