Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37724
b: refs/heads/master
c: 6257b3b
h: refs/heads/master
v: v3
  • Loading branch information
Amol Lad authored and Linus Torvalds committed Oct 1, 2006
1 parent 5e36487 commit 0a140ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4664132613caf40bfbf17b7e0ab3340a8b8f526
refs/heads/master: 6257b3bdfde4295c04872d710c2419ff8efc1b86
16 changes: 15 additions & 1 deletion trunk/drivers/serial/ip22zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1229,13 +1229,27 @@ static int __init ip22zilog_init(void)
static void __exit ip22zilog_exit(void)
{
int i;
struct uart_ip22zilog_port *up;

for (i = 0; i < NUM_CHANNELS; i++) {
struct uart_ip22zilog_port *up = &ip22zilog_port_table[i];
up = &ip22zilog_port_table[i];

uart_remove_one_port(&ip22zilog_reg, &up->port);
}

/* Free IO mem */
up = &ip22zilog_port_table[0];
for (i = 0; i < NUM_IP22ZILOG; i++) {
if (up[(i * 2) + 0].port.mapbase) {
iounmap((void*)up[(i * 2) + 0].port.mapbase);
up[(i * 2) + 0].port.mapbase = 0;
}
if (up[(i * 2) + 1].port.mapbase) {
iounmap((void*)up[(i * 2) + 1].port.mapbase);
up[(i * 2) + 1].port.mapbase = 0;
}
}

uart_unregister_driver(&ip22zilog_reg);
}

Expand Down

0 comments on commit 0a140ff

Please sign in to comment.