]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/tty/serial/altera_uart.c
serial: altera_uart: call iounmap() at driver remove
[karo-tx-linux.git] / drivers / tty / serial / altera_uart.c
index 46d3438a0d27014ce97115e7a17b0eb024f12035..3e4b717670d7432e32d4b66568900773f6e239ce 100644 (file)
@@ -615,6 +615,7 @@ static int altera_uart_remove(struct platform_device *pdev)
        if (port) {
                uart_remove_one_port(&altera_uart_driver, port);
                port->mapbase = 0;
+               iounmap(port->membase);
        }
 
        return 0;