serial: uartlite: Fix compilation warnings
authorMichal Simek <monstr@monstr.eu>
Tue, 18 Oct 2011 00:22:10 +0000 (00:22 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 23 Oct 2011 08:51:11 +0000 (10:51 +0200)
commit8cb9b23755ca696f5ed86146cb133067a2cb4aef
tree830efdf87881763959744835fb2fc5d5887e5201
parentb88e7b3cc022241d6582733b0c389d3d1887335f
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>
drivers/serial/serial_xuartlite.c