]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SERIAL] Make uart_match_port() work with all memory mapped UARTs
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Mon, 28 Aug 2006 15:49:03 +0000 (19:49 +0400)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 30 Aug 2006 09:06:14 +0000 (10:06 +0100)
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>
drivers/serial/serial_core.c

index 80ef7d482756a3c9fec9b70b0646b4c25919472d..372e47f7d596392d3d4528bb0d2680d76eea3f5b 100644 (file)
@@ -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;