aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sunsu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c
index d3a5aeee73a3..9b3b9aaa6b90 100644
--- a/drivers/serial/sunsu.c
+++ b/drivers/serial/sunsu.c
@@ -1499,6 +1499,9 @@ static int __devexit su_remove(struct of_device *dev)
1499 uart_remove_one_port(&sunsu_reg, &up->port); 1499 uart_remove_one_port(&sunsu_reg, &up->port);
1500 } 1500 }
1501 1501
1502 if (up->port.membase)
1503 of_iounmap(up->port.membase, up->reg_size);
1504
1502 dev_set_drvdata(&dev->dev, NULL); 1505 dev_set_drvdata(&dev->dev, NULL);
1503 1506
1504 return 0; 1507 return 0;