From ae1b4721427c6700b10a747b909828ddde287f5f Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 17 Apr 2004 12:31:25 +0100 Subject: [PATCH] [SERIAL] Remove check_region() --- drivers/serial/8250.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 589a4134af8a..6ba6ff1556d6 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -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; } -- 2.39.5