/* Request the memory region(s) being used by 'port'.  */
static int imx_request_port(struct uart_port *port)
/* Request the memory region(s) being used by 'port'.  */
static int imx_request_port(struct uart_port *port)
{
	struct platform_device *pdev = to_platform_device(port->dev);
	struct resource *mmres;
	void *ret;
	mmres = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!mmres)
		return -ENODEV;
	ret = request_mem_region(mmres->start, mmres->end - mmres->start + 1,
			"imx-uart");
	return  ret ? 0 : -EBUSY;
}