diff options
author | Stefan Roese <sr@denx.de> | 2008-07-18 14:24:41 +0400 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-07-18 14:31:25 +0400 |
commit | 60204d06ed9f8c2a67cc79eb67fd2b1d22bcbc8c (patch) | |
tree | 922577031775f896fe4c2e8a777cb2090b9b10f8 /drivers/serial/serial_xuartlite.c | |
parent | 086511fc96a8a9bb56e5e19a3d84c40f4dba80cc (diff) | |
download | u-boot-60204d06ed9f8c2a67cc79eb67fd2b1d22bcbc8c.tar.xz |
ppc4xx: Minor coding style cleanup of Xilinx Virtex5 ml507 support
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/serial/serial_xuartlite.c')
-rw-r--r-- | drivers/serial/serial_xuartlite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index 5c41a1c40a..61e68873eb 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -56,8 +56,8 @@ void serial_putc(const char c) { if (c == '\n') serial_putc('\r'); - while (in_be32(UARTLITE_STATUS) & SR_TX_FIFO_FULL); - out_be32(UARTLITE_TX_FIFO, (unsigned char) (c & 0xff)); + while (in_be32((void *)UARTLITE_STATUS) & SR_TX_FIFO_FULL); + out_be32((void *)UARTLITE_TX_FIFO, (unsigned char) (c & 0xff)); } void serial_puts(const char * s) @@ -69,13 +69,13 @@ void serial_puts(const char * s) int serial_getc(void) { - while (!(in_be32(UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA)); - return in_be32(UARTLITE_RX_FIFO) & 0xff; + while (!(in_be32((void *)UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA)); + return in_be32((void *)UARTLITE_RX_FIFO) & 0xff; } int serial_tstc(void) { - return (in_be32(UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA); + return (in_be32((void *)UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA); } #endif /* CONFIG_MICROBLZE */ |