Skip to content

Commit 59fe2cc

Browse files
tklausergregkh
authored andcommitted
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 5c9d6ab ("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>
1 parent 6df765d commit 59fe2cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/altera_uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ static int altera_uart_remove(struct platform_device *pdev)
615615
if (port) {
616616
uart_remove_one_port(&altera_uart_driver, port);
617617
port->mapbase = 0;
618+
iounmap(port->membase);
618619
}
619620

620621
return 0;

0 commit comments

Comments
 (0)