]> git.hungrycats.org Git - linux/commitdiff
[SERIAL] Remove check_region()
authorRussell King <rmk@flint.arm.linux.org.uk>
Sat, 17 Apr 2004 11:31:25 +0000 (12:31 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sat, 17 Apr 2004 11:31:25 +0000 (12:31 +0100)
drivers/serial/8250.c

index 589a4134af8a7f621247021f2d1579f2755e0d51..6ba6ff1556d64692f96c5dd2ccd43b16dcdbadfe 100644 (file)
@@ -688,11 +688,9 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags)
                for (i = 0 ; i < PORT_RSA_MAX ; ++i) {
                        if (!probe_rsa[i] && !force_rsa[i])
                                break;
-                       if (((probe_rsa[i] != up->port.iobase) ||
-                            check_region(up->port.iobase + UART_RSA_BASE, 16)) &&
-                           (force_rsa[i] != up->port.iobase))
-                               continue;
-                       if (__enable_rsa(up)) {
+                       if ((probe_rsa[i] == up->port.iobase ||
+                            force_rsa[i] == up->port.iobase) &&
+                            __enable_rsa(up)) {
                                up->port.type = PORT_RSA;
                                break;
                        }