summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2006-08-28 19:49:03 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-08-30 10:06:14 +0100
commitd21b55d30b46c0b43821a2980e4998965fa37e33 (patch)
tree4d8c743d0907fc8cd250799f66146e88332a4fcf /drivers/serial
parentdc709bd190c130b299ac19d596594256265c042a (diff)
downloadlinux-3.10-d21b55d30b46c0b43821a2980e4998965fa37e33.tar.gz
linux-3.10-d21b55d30b46c0b43821a2980e4998965fa37e33.tar.bz2
linux-3.10-d21b55d30b46c0b43821a2980e4998965fa37e33.zip
[SERIAL] Make uart_match_port() work with all memory mapped UARTs
uart_match_port() always fails with UPIO_MEM32, UPIO_AU, and UPIO_TSI cases. Since they match to the memory mapped UARTs, they should be handled just like UPIO_MEM case. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 80ef7d48275..372e47f7d59 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -2377,6 +2377,9 @@ int uart_match_port(struct uart_port *port1, struct uart_port *port2)
return (port1->iobase == port2->iobase) &&
(port1->hub6 == port2->hub6);
case UPIO_MEM:
+ case UPIO_MEM32:
+ case UPIO_AU:
+ case UPIO_TSI:
return (port1->mapbase == port2->mapbase);
}
return 0;