]> git.sur5r.net Git - u-boot/commitdiff
serial: ns16550: Remove unwanted cast
authorSimon Glass <sjg@chromium.org>
Tue, 5 Mar 2013 14:40:02 +0000 (14:40 +0000)
committerTom Rini <trini@ti.com>
Fri, 15 Mar 2013 20:14:01 +0000 (16:14 -0400)
This cast does not seem correct, since we should be writing to a pointer,
not a ulong.

This fixes the following warning on nds32:

-ns16550.c:49: warning: passing argument 2 of 'writeb' makes pointer from integer without a cast

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c

index 87a09170864242b262c338dc72670cc46b9e9d97..b2da8b318e99d34e12f87c0279606d0915233aac 100644 (file)
@@ -46,7 +46,7 @@ void NS16550_init(NS16550_t com_port, int baud_divisor)
                                        defined(CONFIG_AM33XX)
        serial_out(0x7, &com_port->mdr1);       /* mode select reset TL16C750*/
 #endif
-       serial_out(UART_LCR_BKSE | UART_LCRVAL, (ulong)&com_port->lcr);
+       serial_out(UART_LCR_BKSE | UART_LCRVAL, &com_port->lcr);
        serial_out(0, &com_port->dll);
        serial_out(0, &com_port->dlm);
        serial_out(UART_LCRVAL, &com_port->lcr);