diff options
| author | Tony Prisk <linux@prisktech.co.nz> | 2012-10-07 17:23:32 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-10-07 17:50:06 -0400 |
| commit | 096947fdab96fd97df47b10b8547382290ef9fcd (patch) | |
| tree | 231279fd7d2e2d6a55d2e6314567a8e9f6a6679c | |
| parent | 68528265149d2861195fc81aa3cdb64120953e12 (diff) | |
arm: vt8500: Fix build warning in uncompress.h
This removes a build-time warning in uncompress.h due to incorrectly
cast values being passed to readb/writeb.
Removed arm/io.h and readb/writeb. Read/write directly to the serial
port with a volatile pointer.
Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Olof Johansson <olof@lixom.net>
| -rw-r--r-- | arch/arm/mach-vt8500/include/mach/uncompress.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-vt8500/include/mach/uncompress.h b/arch/arm/mach-vt8500/include/mach/uncompress.h index bb9e2d23fee3..e6e81fdaf109 100644 --- a/arch/arm/mach-vt8500/include/mach/uncompress.h +++ b/arch/arm/mach-vt8500/include/mach/uncompress.h | |||
| @@ -15,15 +15,15 @@ | |||
| 15 | * | 15 | * |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #define UART0_PHYS 0xd8200000 | 18 | #define UART0_PHYS 0xd8200000 |
| 19 | #include <asm/io.h> | 19 | #define UART0_ADDR(x) *(volatile unsigned char *)(UART0_PHYS + x) |
| 20 | 20 | ||
| 21 | static void putc(const char c) | 21 | static void putc(const char c) |
| 22 | { | 22 | { |
| 23 | while (readb(UART0_PHYS + 0x1c) & 0x2) | 23 | while (UART0_ADDR(0x1c) & 0x2) |
| 24 | /* Tx busy, wait and poll */; | 24 | /* Tx busy, wait and poll */; |
| 25 | 25 | ||
| 26 | writeb(c, UART0_PHYS); | 26 | UART0_ADDR(0) = c; |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | static void flush(void) | 29 | static void flush(void) |
