aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-09-12 00:27:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 18:41:38 -0400
commita50c44ce2463c427552bd0dab635d4980ed84131 (patch)
treef41f5b438fc673c33d4711456772937ad323a836 /drivers/tty
parent2d1e5a48965be57eefce033894d9795672f6ab63 (diff)
serial: imx: Change cast to handle 64-bit resource_size_t
This resolves a warning where resource_size_t is larger than void *: drivers/tty/serial/imx.c:1542:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Since iomem_base is a void *, casting to unsigned long is safe. It's unclear to me that this comparison is truly needed, but it's there on several other drivers as well. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 65d9b2f4882b..c07d9bb39695 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)
1539 ret = -EINVAL; 1539 ret = -EINVAL;
1540 if (sport->port.uartclk / 16 != ser->baud_base) 1540 if (sport->port.uartclk / 16 != ser->baud_base)
1541 ret = -EINVAL; 1541 ret = -EINVAL;
1542 if ((void *)sport->port.mapbase != ser->iomem_base) 1542 if (sport->port.mapbase != (unsigned long)ser->iomem_base)
1543 ret = -EINVAL; 1543 ret = -EINVAL;
1544 if (sport->port.iobase != ser->port) 1544 if (sport->port.iobase != ser->port)
1545 ret = -EINVAL; 1545 ret = -EINVAL;