From: Tobias Klauser Date: Fri, 19 May 2017 11:59:20 +0000 (+0200) Subject: serial: altera_uart: call iounmap() at driver remove X-Git-Tag: MMI-PSA29.97-13-9~5519^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59fe2cc8b1c32dd139da80fc8222b5b3290b7a09;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Tobias Klauser Signed-off-by: Greg Kroah-Hartman --- 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;