aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/mux.c')
-rw-r--r--drivers/serial/mux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/mux.c b/drivers/serial/mux.c
index 4a1c9983f38f..aa819d3f8ee5 100644
--- a/drivers/serial/mux.c
+++ b/drivers/serial/mux.c
@@ -521,6 +521,8 @@ static void __exit mux_exit(void)
521 521
522 for (i = 0; i < port_cnt; i++) { 522 for (i = 0; i < port_cnt; i++) {
523 uart_remove_one_port(&mux_driver, &mux_ports[i]); 523 uart_remove_one_port(&mux_driver, &mux_ports[i]);
524 if (mux_ports[i].membase)
525 iounmap(mux_ports[i].membase);
524 } 526 }
525 527
526 uart_unregister_driver(&mux_driver); 528 uart_unregister_driver(&mux_driver);