summaryrefslogtreecommitdiff
path: root/drivers/serial/serial_xuartlite.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-10-18 00:22:10 +0000
committerWolfgang Denk <wd@denx.de>2011-10-23 10:51:11 +0200
commit8cb9b23755ca696f5ed86146cb133067a2cb4aef (patch)
tree830efdf87881763959744835fb2fc5d5887e5201 /drivers/serial/serial_xuartlite.c
parentb88e7b3cc022241d6582733b0c389d3d1887335f (diff)
downloadu-boot-imx-8cb9b23755ca696f5ed86146cb133067a2cb4aef.zip
u-boot-imx-8cb9b23755ca696f5ed86146cb133067a2cb4aef.tar.gz
u-boot-imx-8cb9b23755ca696f5ed86146cb133067a2cb4aef.tar.bz2
serial: uartlite: Fix compilation warnings
Do not setup userial_ports array as const because in uartlite_serial_putc is out_be32 which can't write to tx_fifo if is const. Warning log: serial_xuartlite.c: In function 'uartlite_serial_putc': serial_xuartlite.c:60: warning: initialization discards qualifiers from pointer target type serial_xuartlite.c: In function 'uartlite_serial_getc': serial_xuartlite.c:78: warning: initialization discards qualifiers from pointer target type serial_xuartlite.c: In function 'uartlite_serial_tstc': serial_xuartlite.c:87: warning: initialization discards qualifiers from pointer target type Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'drivers/serial/serial_xuartlite.c')
-rw-r--r--drivers/serial/serial_xuartlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c
index 2dc6bd1..3a38f9e 100644
--- a/drivers/serial/serial_xuartlite.c
+++ b/drivers/serial/serial_xuartlite.c
@@ -40,7 +40,7 @@ struct uartlite {
unsigned int status;
};
-static const struct uartlite *userial_ports[4] = {
+static struct uartlite *userial_ports[4] = {
#ifdef XILINX_UARTLITE_BASEADDR
[0] = (struct uartlite *)XILINX_UARTLITE_BASEADDR,
#endif