The resource handling left in autoconfig() is plainly wrong, since
we've already claimed the necessary resources prior to calling
autoconfig(). Therefore, we remove the superfluous code from
autoconfig().
out:
spin_unlock_irqrestore(&up->port.lock, flags);
// restore_flags(flags);
-#ifdef CONFIG_SERIAL_8250_RSA
- if (up->port.iobase && up->port.type == PORT_RSA) {
- release_region(up->port.iobase, 8);
- request_region(up->port.iobase + UART_RSA_BASE, 16,
- "serial_rsa");
- }
-#endif
DEBUG_AUTOCONF("type=%s\n", uart_config[up->port.type].name);
}