]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09b4d16983ab07e122b203de7c7905de9056385c
treefa67413d5f223342b3e86c9847899d9b1d35380e
parent0b45ccc4e23630f33ef34f4cadb085e6364b0e68
serial: xuartps: Fix iobase use.

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