diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2015-05-06 12:32:00 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-07 09:49:38 +0200 |
commit | 95df4587ef57428b4459ba97fb9a7b890f0c1a86 (patch) | |
tree | cf1020b2c89ab158c4d16b5e6add2be1f9fbdf37 /arch/arm/mach-imx/include/mach/debug_ll.h | |
parent | 031111d0bc5aab9348d5e4e14cdac0a5d982df67 (diff) | |
download | barebox-95df4587ef57428b4459ba97fb9a7b890f0c1a86.tar.gz barebox-95df4587ef57428b4459ba97fb9a7b890f0c1a86.tar.xz |
i.MX: serial: Convert PUTC_LL to use IOMEM
Convert PUTC_LL to use IOMEM instead of explicit casting to 'void *',
since the former seem to be more appropriate to the situation.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/debug_ll.h')
-rw-r--r-- | arch/arm/mach-imx/include/mach/debug_ll.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/include/mach/debug_ll.h b/arch/arm/mach-imx/include/mach/debug_ll.h index c2f454a7e3..1f35e81532 100644 --- a/arch/arm/mach-imx/include/mach/debug_ll.h +++ b/arch/arm/mach-imx/include/mach/debug_ll.h @@ -82,8 +82,8 @@ static inline void imx6_uart_setup_ll(void) static inline void PUTC_LL(int c) { - void __iomem *base = (void *)IMX_UART_BASE(IMX_DEBUG_SOC, - CONFIG_DEBUG_IMX_UART_PORT); + void __iomem *base = IOMEM(IMX_UART_BASE(IMX_DEBUG_SOC, + CONFIG_DEBUG_IMX_UART_PORT)); if (!base) return; |