public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Remove warnings compiling serial_xuartlite.c
@ 2008-07-16  1:01 Ricardo Ribalda Delgado
  2008-07-16 13:55 ` Grant Likely
  0 siblings, 1 reply; 11+ messages in thread
From: Ricardo Ribalda Delgado @ 2008-07-16  1:01 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
---
serial_xuartlite.c: In function ?serial_putc?:
serial_xuartlite.c:59: warning: passing argument 1 of ?in_be32? makes pointer from integer without a cast
serial_xuartlite.c:60: warning: passing argument 1 of ?out_be32? makes pointer from integer without a cast
serial_xuartlite.c: In function ?serial_getc?:
serial_xuartlite.c:72: warning: passing argument 1 of ?in_be32? makes pointer from integer without a cast
serial_xuartlite.c:73: warning: passing argument 1 of ?in_be32? makes pointer from integer without a cast
serial_xuartlite.c: In function ?serial_tstc?:
serial_xuartlite.c:78: warning: passing argument 1 of ?in_be32? makes pointer from integer without a cast

Previous warnings corrected by this patch

 drivers/serial/serial_xuartlite.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c
index 5c41a1c..2e6f096 100644
--- a/drivers/serial/serial_xuartlite.c
+++ b/drivers/serial/serial_xuartlite.c
@@ -37,9 +37,9 @@
 #define SR_RX_FIFO_VALID_DATA	0x01 /* data in receive FIFO */
 #define SR_RX_FIFO_FULL		0x02 /* receive FIFO full */
 
-#define UARTLITE_STATUS		(CONFIG_SERIAL_BASE + STATUS_REG_OFFSET)
-#define UARTLITE_TX_FIFO	(CONFIG_SERIAL_BASE + TX_FIFO_OFFSET)
-#define UARTLITE_RX_FIFO	(CONFIG_SERIAL_BASE + RX_FIFO_OFFSET)
+#define UARTLITE_STATUS		(u32*)(CONFIG_SERIAL_BASE + STATUS_REG_OFFSET)
+#define UARTLITE_TX_FIFO	(u32*)(CONFIG_SERIAL_BASE + TX_FIFO_OFFSET)
+#define UARTLITE_RX_FIFO	(u32*)(CONFIG_SERIAL_BASE + RX_FIFO_OFFSET)
 
 int serial_init(void)
 {
-- 
1.5.6.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-07-24  7:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16  1:01 [U-Boot-Users] [PATCH] Remove warnings compiling serial_xuartlite.c Ricardo Ribalda Delgado
2008-07-16 13:55 ` Grant Likely
2008-07-16 14:22   ` Ricardo Ribalda Delgado
2008-07-16 14:26     ` Grant Likely
2008-07-20 21:06     ` Wolfgang Denk
2008-07-20 21:33       ` Ricardo Ribalda Delgado
2008-07-23  9:20         ` Haavard Skinnemoen
2008-07-23 13:25           ` Grant Likely
2008-07-24  3:18           ` Wolfgang Denk
2008-07-24  5:07             ` Grant Likely
2008-07-24  7:43               ` Haavard Skinnemoen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox