]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial_xuartlite.c: fix compiler warnings
authorRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
Wed, 16 Jul 2008 14:22:32 +0000 (16:22 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 20 Jul 2008 21:04:52 +0000 (23:04 +0200)
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
drivers/serial/serial_xuartlite.c

index 5c41a1c40a667513ce8b1828227f29c291ecac39..74546ce84688f52f3dad612d5a0987de03daec38 100644 (file)
@@ -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((u32 *) UARTLITE_STATUS) & SR_TX_FIFO_FULL);
+       out_be32((u32 *) 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((u32 *) UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA));
+       return in_be32((u32 *) UARTLITE_RX_FIFO) & 0xff;
 }
 
 int serial_tstc(void)
 {
-       return (in_be32(UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA);
+       return (in_be32((u32 *) UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA);
 }
 
 #endif /* CONFIG_MICROBLZE */