summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/altera_uart.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-05-19 13:59:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-25 14:36:37 +0200
commit59fe2cc8b1c32dd139da80fc8222b5b3290b7a09 (patch)
tree9c4cf30a68546c3f626d018607c9be76f2715c74 /drivers/tty/serial/altera_uart.c
parentserial: imx: ensure UCR3 and UFCR are setup correctly (diff)
downloadlinux-59fe2cc8b1c32dd139da80fc8222b5b3290b7a09.tar.xz
linux-59fe2cc8b1c32dd139da80fc8222b5b3290b7a09.zip
serial: altera_uart: call iounmap() at driver remove
The driver calls ioremap() in the probe function but doesn't call iounmap() in the remove function correspondingly. Do so now. Follow commit 5c9d6abed9e0 ("serial: altera_jtaguart: adding iounmap()") Cc: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/altera_uart.c')
-rw-r--r--drivers/tty/serial/altera_uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/altera_uart.c b/drivers/tty/serial/altera_uart.c
index 46d3438a0d27..3e4b717670d7 100644
--- a/drivers/tty/serial/altera_uart.c
+++ b/drivers/tty/serial/altera_uart.c
@@ -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;