]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
serial: sh-sci: Fix cast warning
authorJingoo Han <jg1.han@samsung.com>
Wed, 5 Feb 2014 00:56:37 +0000 (09:56 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 17:17:31 +0000 (09:17 -0800)
Fix the following compile warning about cast to pointer from
integer of different size.

drivers/tty/serial/sh-sci.c:2021:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c

index be33d2b0613bb95a51092b1173c9d1291082a211..1668523d31fb5a26c4b0a69988c267a9e0e13009 100644 (file)
@@ -2018,7 +2018,7 @@ static int sci_remap_port(struct uart_port *port)
                 * need to do any remapping, just cast the cookie
                 * directly.
                 */
-               port->membase = (void __iomem *)port->mapbase;
+               port->membase = (void __iomem *)(uintptr_t)port->mapbase;
        }
 
        return 0;