diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 65d9b2f4882b7f1e1c02691f18d37c4efcb4664d..c07d9bb39695c999358f3c0c35eb51f5675a9260 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1539,7 +1539,7 @@ imx_verify_port(struct uart_port *port, struct serial_struct *ser) ret = -EINVAL; if (sport->port.uartclk / 16 != ser->baud_base) ret = -EINVAL; - if ((void *)sport->port.mapbase != ser->iomem_base) + if (sport->port.mapbase != (unsigned long)ser->iomem_base) ret = -EINVAL; if (sport->port.iobase != ser->port) ret = -EINVAL;