[U-Boot] [PATCH 23/26] serial: uartlite: Support for SERIAL_MULTI
Mike Frysinger
vapier at gentoo.org
Tue Sep 13 19:36:24 CEST 2011
On Tuesday, September 13, 2011 03:10:18 Michal Simek wrote:
> +static struct uartlite *userial_ports[4] = {
pretty sure this should be:
static struct uartlite * const userial_ports[4] = {
> +#ifdef XILINX_UARTLITE_BASEADDR
> + (struct uartlite *)XILINX_UARTLITE_BASEADDR,
> +#else
> + NULL,
> +#endif
simpler code:
#ifdef XILINX_UARTLITE_BASEADDR
[0] = (struct uartlite *)XILINX_UARTLITE_BASEADDR,
#endif
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110913/dc26a584/attachment.pgp
More information about the U-Boot
mailing list