diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-04 19:56:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-13 12:17:31 -0500 |
commit | 3af4e960b8a12b3f07033f1c12504305e6d4df1a (patch) | |
tree | 35468f53f8e1002a5fe035be477ed39add3e993f /drivers/tty/serial/sh-sci.c | |
parent | 4a818a09c050ebd0d99398742016bdf7e788be2a (diff) |
serial: sh-sci: Fix cast warning
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>
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index be33d2b0613b..1668523d31fb 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -2018,7 +2018,7 @@ static int sci_remap_port(struct uart_port *port) | |||
2018 | * need to do any remapping, just cast the cookie | 2018 | * need to do any remapping, just cast the cookie |
2019 | * directly. | 2019 | * directly. |
2020 | */ | 2020 | */ |
2021 | port->membase = (void __iomem *)port->mapbase; | 2021 | port->membase = (void __iomem *)(uintptr_t)port->mapbase; |
2022 | } | 2022 | } |
2023 | 2023 | ||
2024 | return 0; | 2024 | return 0; |