]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: xuartps: Fix iobase use.
authorThomas Betker <thomas.betker@rohde-schwarz.com>
Wed, 11 Mar 2015 21:39:27 +0000 (22:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:52:30 +0000 (22:52 +0100)
cdns_uart_get_port() sets port->iobase = 1 to "mark port in use", but
this "in use" condition is not checked anywhere else in the code. So
remove the line, keeping port->iobase = 0 (which also makes more sense).

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c

index b0c2862a3daf8e2549f764011423c913bd616b0c..50643a94c5c1565af2089cf91f7ff94678d139aa 100644 (file)
@@ -1038,7 +1038,6 @@ static struct uart_port *cdns_uart_get_port(int id)
        /* At this point, we've got an empty uart_port struct, initialize it */
        spin_lock_init(&port->lock);
        port->membase   = NULL;
-       port->iobase    = 1; /* mark port in use */
        port->irq       = 0;
        port->type      = PORT_UNKNOWN;
        port->iotype    = UPIO_MEM32;